llvm-project/libcxx/test/std/strings/basic.string/string.cons
Billy Robert O'Neal III 362ea7329f Fix possible loss of data warnings on amd64
In T_size_size.pass, there is an explicit template argument to std::min to ask
for unsigned, to avoid type deduction errors. However, C1XX' warnings still
hate this use, because a 64 bit value (a size_t) is being passed to a function
accepting an unsigned (a 32 bit value).

Instead, change the tests to pass around std::size_t instances, and explicitly
narrow when constructing the string type under test. This also allows
removal of explicit template arguments to std::min.

llvm-svn: 302473
2017-05-08 21:54:53 +00:00
..
T_size_size.pass.cpp Fix possible loss of data warnings on amd64 2017-05-08 21:54:53 +00:00
alloc.pass.cpp Support allocators with explicit conversion constructors. Fixes bug #29000 2016-08-17 05:58:40 +00:00
brace_assignment.pass.cpp Fix std::string assignment ambiguity from braced initializer lists. 2017-01-17 22:10:32 +00:00
char_assignment.pass.cpp Guard libc++ specific c.__invariants() tests in LIBCPP_ASSERT macros 2016-04-28 22:28:23 +00:00
copy.pass.cpp Guard libc++ specific c.__invariants() tests in LIBCPP_ASSERT macros 2016-04-28 22:28:23 +00:00
copy_alloc.pass.cpp [libcxx] [test] Strip trailing whitespace. 2017-02-05 22:48:27 +00:00
copy_assignment.pass.cpp Guard libc++ specific c.__invariants() tests in LIBCPP_ASSERT macros 2016-04-28 22:28:23 +00:00
default_noexcept.pass.cpp Guard libc++ specific c.__invariants() tests in LIBCPP_ASSERT macros 2016-04-28 22:28:23 +00:00
dtor_noexcept.pass.cpp [libcxx] [test] Fix Clang -Wunused-local-typedef, part 1/3. 2017-02-05 22:47:09 +00:00
implicit_deduction_guides.pass.cpp Remove XFAIL in implicit_deduction_guides tests 2017-02-27 21:10:41 +00:00
initializer_list.pass.cpp Guard libc++ specific c.__invariants() tests in LIBCPP_ASSERT macros 2016-04-28 22:28:23 +00:00
initializer_list_assignment.pass.cpp Guard libc++ specific c.__invariants() tests in LIBCPP_ASSERT macros 2016-04-28 22:28:23 +00:00
iter_alloc.pass.cpp [libcxx] [test] Fix Clang -Wunused-local-typedef, part 2/3. 2017-02-05 22:47:41 +00:00
move.pass.cpp Guard libc++ specific c.__invariants() tests in LIBCPP_ASSERT macros 2016-04-28 22:28:23 +00:00
move_alloc.pass.cpp Guard libc++ specific c.__invariants() tests in LIBCPP_ASSERT macros 2016-04-28 22:28:23 +00:00
move_assign_noexcept.pass.cpp Remove trailing whitespace in test suite. Approved by Marshall Clow. 2016-06-01 21:35:39 +00:00
move_assignment.pass.cpp Guard libc++ specific c.__invariants() tests in LIBCPP_ASSERT macros 2016-04-28 22:28:23 +00:00
move_noexcept.pass.cpp Guard libc++ specific c.__invariants() tests in LIBCPP_ASSERT macros 2016-04-28 22:28:23 +00:00
pointer_alloc.pass.cpp [libcxx] [test] Fix Clang -Wunused-local-typedef, part 2/3. 2017-02-05 22:47:41 +00:00
pointer_assignment.pass.cpp Guard libc++ specific c.__invariants() tests in LIBCPP_ASSERT macros 2016-04-28 22:28:23 +00:00
pointer_size_alloc.pass.cpp [libcxx] [test] Fix Clang -Wunused-local-typedef, part 2/3. 2017-02-05 22:47:41 +00:00
size_char_alloc.pass.cpp [libcxx] [test] Fix Clang -Wunused-local-typedef, part 2/3. 2017-02-05 22:47:41 +00:00
string_view.fail.cpp Implement std::string_view as described in http://wg21.link/P0254R1. Reviewed as https://reviews.llvm.org/D21459 2016-07-21 05:31:24 +00:00
string_view.pass.cpp Fix std::string assignment ambiguity from braced initializer lists. 2017-01-17 22:10:32 +00:00
substr.pass.cpp [libcxx] [test] Fix Clang -Wunused-local-typedef, part 2/3. 2017-02-05 22:47:41 +00:00