commit | ba40b0566ff0e835bc8234a4651e8cbf76181c3e | [log] [tgz] |
---|---|---|
author | Billy Robert O'Neal III <bion@microsoft.com> | Tue Nov 21 21:37:26 2017 +0000 |
committer | Billy Robert O'Neal III <bion@microsoft.com> | Tue Nov 21 21:37:26 2017 +0000 |
tree | e06d8a46d0d11568b8e772d15a6d60fd220e9e2b | |
parent | 9dc54e25f007bf5309894337c8682a678deb7033 [diff] [blame] |
Change (void) casts to TEST_IGNORE_NODISCARD, as requested by Eric. Reviewed as https://reviews.llvm.org/D40065 llvm-svn: 318804
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 8bfb829..16121cb 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 @@ { try { - (void)s.at(pos); + TEST_IGNORE_NODISCARD s.at(pos); assert(false); } catch (std::out_of_range&) @@ -44,7 +44,7 @@ } try { - (void)cs.at(pos); + TEST_IGNORE_NODISCARD cs.at(pos); assert(false); } catch (std::out_of_range&)