mirror of https://github.com/llvm-mirror/libcxx
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
MSVC emits "warning C4244: 'initializing': conversion from 'int' to 'short', possible loss of data" when it sees pair<Whatever, short> constructed from (whatever, 4), because int is being truncated to short within pair's constructor. (The compiler doesn't take into account the fact that 4 is a literal at the callsite; it generates this warning when the constructor is instantiated, because it might be called with a runtime-valued int that would actually truncate.) Instead of static_cast<short>, we can simply change short to int in these tests, without affecting the pair operations that they're trying to test: move assignment, convert copy construction, and convert move construction. Fixes D45016. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@329973 91177308-0d34-0410-b5e6-96231b3b80d8 |
8 years ago | |
|---|---|---|
| .. | ||
| U_V.pass.cpp | 9 years ago | |
| assign_const_pair_U_V.pass.cpp | 8 years ago | |
| assign_pair.pass.cpp | 9 years ago | |
| assign_pair_cxx03.pass.cpp | 9 years ago | |
| assign_rv_pair.pass.cpp | 8 years ago | |
| assign_rv_pair_U_V.pass.cpp | 8 years ago | |
| const_first_const_second.pass.cpp | 9 years ago | |
| const_first_const_second_cxx03.pass.cpp | 9 years ago | |
| const_pair_U_V.pass.cpp | 8 years ago | |
| const_pair_U_V_cxx03.pass.cpp | 9 years ago | |
| copy_ctor.pass.cpp | 9 years ago | |
| default-sfinae.pass.cpp | 9 years ago | |
| default.pass.cpp | 9 years ago | |
| dtor.pass.cpp | 9 years ago | |
| implicit_deduction_guides.pass.cpp | 8 years ago | |
| move_ctor.pass.cpp | 9 years ago | |
| not_constexpr_cxx11.fail.cpp | 9 years ago | |
| piecewise.pass.cpp | 9 years ago | |
| rv_pair_U_V.pass.cpp | 8 years ago | |
| special_member_generation_test.pass.cpp | 9 years ago | |
| swap.pass.cpp | 9 years ago | |
| trivial_copy_move.pass.cpp | 9 years ago | |
| types.pass.cpp | 11 years ago | |