llvm-project/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.assign
Stephan T. Lavavej a0d87857e0 [libcxx] [test] Fix MSVC warning C4244 "conversion from 'X' to 'Y', possible loss of data", part 5/7.
Instead of storing double in double and then truncating to int, store int in long
and then widen to long long. This preserves test coverage (as these tests are
interested in various tuple conversions) while avoiding truncation warnings.

test/std/utilities/tuple/tuple.tuple/tuple.cnstr/const_pair.pass.cpp
Since we aren't physically truncating anymore, t1 is equal to p0.

test/std/utilities/tuple/tuple.tuple/tuple.cnstr/convert_copy.pass.cpp
One edit is different from the usual pattern. Previously, we were storing
double in double and then converting to A, which has an implicitly converting
constructor from int. Now, we're storing int in int and then converting to A,
avoiding the truncation.

Fixes D27542.

llvm-svn: 289109
2016-12-08 21:38:32 +00:00
..
const_pair.pass.cpp [libcxx] [test] Fix MSVC warning C4244 "conversion from 'X' to 'Y', possible loss of data", part 5/7. 2016-12-08 21:38:32 +00:00
convert_copy.pass.cpp [libcxx] [test] Fix MSVC warning C4244 "conversion from 'X' to 'Y', possible loss of data", part 5/7. 2016-12-08 21:38:32 +00:00
convert_move.pass.cpp [libcxx] [test] Fix MSVC warning C4244 "conversion from 'X' to 'Y', possible loss of data", part 5/7. 2016-12-08 21:38:32 +00:00
copy.fail.cpp [libcxx] Mark most tuple tests UNSUPPORTED for c++03 and c++98. 2015-02-19 02:10:42 +00:00
copy.pass.cpp Add missing <memory> include in test 2016-10-08 00:59:16 +00:00
move.pass.cpp Recommit r276548 - Make pair/tuples assignment operators SFINAE properly. 2016-07-25 02:36:42 +00:00
move_pair.pass.cpp [libcxx] [test] Fix MSVC warning C4244 "conversion from 'X' to 'Y', possible loss of data", part 5/7. 2016-12-08 21:38:32 +00:00
tuple_array_template_depth.pass.cpp Mark more tuple tests as unsupported in C++98 && C++03 2015-02-19 02:44:09 +00:00