[libcxx] Fix std::vector construct_iter_iter.pass.cpp test (C++98/03)
authorMikhail Maltsev <mikhail.maltsev@arm.com>
Wed, 10 Jun 2020 13:26:58 +0000 (14:26 +0100)
committerMikhail Maltsev <mikhail.maltsev@arm.com>
Wed, 10 Jun 2020 13:27:33 +0000 (14:27 +0100)
commit4e94bdceb0f94b90369bf30bf8dca033ee23943a
tree607e5572db3af1e75d75c3f779a0aaed7f3d7ce6
parent70330edc4d1083c14edac160e703a4b5c4edb25e
[libcxx] Fix std::vector construct_iter_iter.pass.cpp test (C++98/03)

The test is failing on 32-bit targets in C++03 mode. Clang produces
the following warning: 'integer literal is too large to be represented
in type 'long' and is subject to undefined behavior under C++98,
interpreting as 'unsigned long'; this literal will have type 'long
long' in C++11 onwards [-Wc++11-compat]' which is promoted to an error
and causes the test to fail.

There have been no changes in the test itself since 2019, so it looks
like the diagnostic has been updated.

Differential Revision: https://reviews.llvm.org/D81559
libcxx/test/std/containers/sequences/vector/vector.cons/construct_iter_iter.pass.cpp