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/basic.string/string.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/basic.string/string.access/at.pass.cpp')
-rw-r--r-- | libcxx/test/std/strings/basic.string/string.access/at.pass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/test/std/strings/basic.string/string.access/at.pass.cpp b/libcxx/test/std/strings/basic.string/string.access/at.pass.cpp index 891648930e3..8bfb829b0c0 100644 --- a/libcxx/test/std/strings/basic.string/string.access/at.pass.cpp +++ b/libcxx/test/std/strings/basic.string/string.access/at.pass.cpp @@ -35,7 +35,7 @@ test(S s, typename S::size_type pos) { try { - s.at(pos); + (void)s.at(pos); assert(false); } catch (std::out_of_range&) @@ -44,7 +44,7 @@ test(S s, typename S::size_type pos) } try { - cs.at(pos); + (void)cs.at(pos); assert(false); } catch (std::out_of_range&) |