diff options
author | Billy Robert O'Neal III <bion@microsoft.com> | 2017-11-15 07:45:07 +0000 |
---|---|---|
committer | Billy Robert O'Neal III <bion@microsoft.com> | 2017-11-15 07:45:07 +0000 |
commit | 1c240a89ffa0d7ca0afab6e36c8f8a58ec73e52f (patch) | |
tree | 2caff257dfc12ccf3f21c8e570b1e8b2c525bc1f /libcxx/test/std/containers/associative/map | |
parent | 83252766f906799d68a46af39687d7a60fa8530a (diff) | |
download | bcm5719-llvm-1c240a89ffa0d7ca0afab6e36c8f8a58ec73e52f.tar.gz bcm5719-llvm-1c240a89ffa0d7ca0afab6e36c8f8a58ec73e52f.zip |
Tolerate even more [[nodiscard]] in the STL. Reviewed as https://reviews.llvm.org/D39080
llvm-svn: 318277
Diffstat (limited to 'libcxx/test/std/containers/associative/map')
-rw-r--r-- | libcxx/test/std/containers/associative/map/map.access/at.pass.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libcxx/test/std/containers/associative/map/map.access/at.pass.cpp b/libcxx/test/std/containers/associative/map/map.access/at.pass.cpp index 6d3e98e9e78..89ba1943da1 100644 --- a/libcxx/test/std/containers/associative/map/map.access/at.pass.cpp +++ b/libcxx/test/std/containers/associative/map/map.access/at.pass.cpp @@ -46,7 +46,7 @@ int main() #ifndef TEST_HAS_NO_EXCEPTIONS try { - m.at(6); + (void)m.at(6); assert(false); } catch (std::out_of_range&) @@ -79,7 +79,7 @@ int main() #ifndef TEST_HAS_NO_EXCEPTIONS try { - m.at(6); + (void)m.at(6); assert(false); } catch (std::out_of_range&) @@ -115,7 +115,7 @@ int main() #ifndef TEST_HAS_NO_EXCEPTIONS try { - m.at(6); + (void)m.at(6); assert(false); } catch (std::out_of_range&) @@ -148,7 +148,7 @@ int main() #ifndef TEST_HAS_NO_EXCEPTIONS try { - m.at(6); + (void)m.at(6); assert(false); } catch (std::out_of_range&) |