llvm-project/libcxx/test/std/strings/string.view/string.view.ops
Stephan T. Lavavej aec1876601 [libcxx] [test] Fix string_view tests.
test/std/strings/string.view/string.view.ops/compare.pointer_size.pass.cpp
Passing -1 to size_t triggers signed/unsigned mismatch warnings because it's
a value-modifying conversion. Add static_cast<size_t> to soothe the compiler.
(This file refers to size_t unqualified.)

test/std/strings/string.view/string.view.ops/substr.pass.cpp
Add <algorithm> for std::min() and <stdexcept> for std::out_of_range.

N4618 21.4.2.4 [string.view.access]/1: "Requires: pos < size()."
/4: "[ Note: Unlike basic_string::operator[], basic_string_view::operator[](size())
has undefined behavior instead of returning charT(). -end note ]"

Fixes D27633.

llvm-svn: 289283
2016-12-09 22:35:53 +00:00
..
compare.pointer.pass.cpp [libcxx] [test] Replace _LIBCPP_STD_VER with TEST_STD_VER. 2016-11-04 20:26:59 +00:00
compare.pointer_size.pass.cpp [libcxx] [test] Fix string_view tests. 2016-12-09 22:35:53 +00:00
compare.size_size_sv.pass.cpp
compare.size_size_sv_pointer_size.pass.cpp
compare.size_size_sv_size_size.pass.cpp
compare.sv.pass.cpp [libcxx] [test] Replace _LIBCPP_STD_VER with TEST_STD_VER. 2016-11-04 20:26:59 +00:00
copy.pass.cpp Add missing include in string_view tests. Patch from Billy ONeil @ microsoft 2016-10-24 20:11:17 +00:00
substr.pass.cpp [libcxx] [test] Fix string_view tests. 2016-12-09 22:35:53 +00:00