forked from OSchip/llvm-project
![]() 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. llvm-svn: 329973 |
||
---|---|---|
.. | ||
U_V.pass.cpp | ||
assign_const_pair_U_V.pass.cpp | ||
assign_pair.pass.cpp | ||
assign_pair_cxx03.pass.cpp | ||
assign_rv_pair.pass.cpp | ||
assign_rv_pair_U_V.pass.cpp | ||
const_first_const_second.pass.cpp | ||
const_first_const_second_cxx03.pass.cpp | ||
const_pair_U_V.pass.cpp | ||
const_pair_U_V_cxx03.pass.cpp | ||
copy_ctor.pass.cpp | ||
default-sfinae.pass.cpp | ||
default.pass.cpp | ||
dtor.pass.cpp | ||
implicit_deduction_guides.pass.cpp | ||
move_ctor.pass.cpp | ||
not_constexpr_cxx11.fail.cpp | ||
piecewise.pass.cpp | ||
rv_pair_U_V.pass.cpp | ||
special_member_generation_test.pass.cpp | ||
swap.pass.cpp | ||
trivial_copy_move.pass.cpp | ||
types.pass.cpp |