diff options
author | Billy Robert O'Neal III <bion@microsoft.com> | 2017-11-15 07:40:37 +0000 |
---|---|---|
committer | Billy Robert O'Neal III <bion@microsoft.com> | 2017-11-15 07:40:37 +0000 |
commit | 83252766f906799d68a46af39687d7a60fa8530a (patch) | |
tree | c0885eb31dc65c8eccea6e06f5cad5d7fbf070ab /libcxx/test/std/strings/string.view/string.view.access/at.pass.cpp | |
parent | ad51924eb4aec3f28a2f1a20b8b9040bfd4d3052 (diff) | |
download | bcm5719-llvm-83252766f906799d68a46af39687d7a60fa8530a.tar.gz bcm5719-llvm-83252766f906799d68a46af39687d7a60fa8530a.zip |
Tolerate [[nodiscard]] annotations in the STL. Reviewed as https://reviews.llvm.org/D39033
llvm-svn: 318276
Diffstat (limited to 'libcxx/test/std/strings/string.view/string.view.access/at.pass.cpp')
-rw-r--r-- | libcxx/test/std/strings/string.view/string.view.access/at.pass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/test/std/strings/string.view/string.view.access/at.pass.cpp b/libcxx/test/std/strings/string.view/string.view.access/at.pass.cpp index 6df879898f4..7d5cf241e66 100644 --- a/libcxx/test/std/strings/string.view/string.view.access/at.pass.cpp +++ b/libcxx/test/std/strings/string.view/string.view.access/at.pass.cpp @@ -32,7 +32,7 @@ void test ( const CharT *s, size_t len ) { } #ifndef TEST_HAS_NO_EXCEPTIONS - try { sv.at(len); } catch ( const std::out_of_range & ) { return ; } + try { (void)sv.at(len); } catch ( const std::out_of_range & ) { return ; } assert ( false ); #endif } |