diff options
| author | Marshall Clow <mclow.lists@gmail.com> | 2017-11-15 20:02:27 +0000 |
|---|---|---|
| committer | Marshall Clow <mclow.lists@gmail.com> | 2017-11-15 20:02:27 +0000 |
| commit | 25a7ba4524219e7eeb1254db0d406448f3703d3a (patch) | |
| tree | 7dcad66bfed31f43ebef9bd15e925e95acfa7a58 /libcxx/test/std/strings/string.view/string.view.capacity/capacity.pass.cpp | |
| parent | 118a7a99860b5079509a9452b9052053a295f5d7 (diff) | |
| download | bcm5719-llvm-25a7ba4524219e7eeb1254db0d406448f3703d3a.tar.gz bcm5719-llvm-25a7ba4524219e7eeb1254db0d406448f3703d3a.zip | |
More of P0600 - '[[nodiscard]] in the Library' mark empty() as nodiscard in string, string_view, and the free function std::empty(). Removed tabs from <string_view>, which is why the diff is so big.
llvm-svn: 318328
Diffstat (limited to 'libcxx/test/std/strings/string.view/string.view.capacity/capacity.pass.cpp')
| -rw-r--r-- | libcxx/test/std/strings/string.view/string.view.capacity/capacity.pass.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libcxx/test/std/strings/string.view/string.view.capacity/capacity.pass.cpp b/libcxx/test/std/strings/string.view/string.view.capacity/capacity.pass.cpp index d36c2788629..bb733c4fb13 100644 --- a/libcxx/test/std/strings/string.view/string.view.capacity/capacity.pass.cpp +++ b/libcxx/test/std/strings/string.view/string.view.capacity/capacity.pass.cpp @@ -35,6 +35,10 @@ void test1 () { { SV sv1; + ASSERT_NOEXCEPT(sv1.size()); + ASSERT_NOEXCEPT(sv1.empty()); + ASSERT_NOEXCEPT(sv1.max_size()); + ASSERT_NOEXCEPT(sv1.length()); assert ( sv1.size() == 0 ); assert ( sv1.empty()); assert ( sv1.size() == sv1.length()); |

