From 1c240a89ffa0d7ca0afab6e36c8f8a58ec73e52f Mon Sep 17 00:00:00 2001 From: Billy Robert O'Neal III Date: Wed, 15 Nov 2017 07:45:07 +0000 Subject: Tolerate even more [[nodiscard]] in the STL. Reviewed as https://reviews.llvm.org/D39080 llvm-svn: 318277 --- libcxx/test/std/containers/associative/map/map.access/at.pass.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libcxx/test/std/containers/associative') 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&) -- cgit v1.2.3