Stephan T. Lavavej
eae7e51a7d
[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.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@289283 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-09 22:35:53 +00:00
..
2016-12-08 21:38:44 +00:00
2016-11-23 22:03:28 +00:00
2016-12-09 12:17:31 +00:00
2016-11-14 17:35:14 +00:00
2016-11-23 22:03:28 +00:00
2016-12-09 09:51:09 +00:00
2016-12-08 21:38:57 +00:00
2016-12-08 21:38:57 +00:00
2016-12-08 21:38:57 +00:00
2016-12-06 01:13:14 +00:00
2016-12-08 21:38:57 +00:00
2016-12-08 21:38:57 +00:00
2016-12-09 22:35:53 +00:00
2016-12-08 10:02:04 +00:00
2016-12-09 19:53:08 +00:00
2014-12-20 01:40:03 +00:00