summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/diagnostics/syserr/syserr.errcode
diff options
context:
space:
mode:
authorBilly Robert O'Neal III <bion@microsoft.com>2017-11-21 21:37:26 +0000
committerBilly Robert O'Neal III <bion@microsoft.com>2017-11-21 21:37:26 +0000
commitba40b0566ff0e835bc8234a4651e8cbf76181c3e (patch)
treee06d8a46d0d11568b8e772d15a6d60fd220e9e2b /libcxx/test/std/diagnostics/syserr/syserr.errcode
parent9dc54e25f007bf5309894337c8682a678deb7033 (diff)
downloadbcm5719-llvm-ba40b0566ff0e835bc8234a4651e8cbf76181c3e.tar.gz
bcm5719-llvm-ba40b0566ff0e835bc8234a4651e8cbf76181c3e.zip
Change (void) casts to TEST_IGNORE_NODISCARD, as requested by Eric. Reviewed as https://reviews.llvm.org/D40065
llvm-svn: 318804
Diffstat (limited to 'libcxx/test/std/diagnostics/syserr/syserr.errcode')
-rw-r--r--libcxx/test/std/diagnostics/syserr/syserr.errcode/syserr.errcode.overview/types.pass.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/libcxx/test/std/diagnostics/syserr/syserr.errcode/syserr.errcode.overview/types.pass.cpp b/libcxx/test/std/diagnostics/syserr/syserr.errcode/syserr.errcode.overview/types.pass.cpp
index a2515a4c835..6c76a25526f 100644
--- a/libcxx/test/std/diagnostics/syserr/syserr.errcode/syserr.errcode.overview/types.pass.cpp
+++ b/libcxx/test/std/diagnostics/syserr/syserr.errcode/syserr.errcode.overview/types.pass.cpp
@@ -13,11 +13,12 @@
// Make sure that the error_code bits of <system_error> are self-contained.
#include <system_error>
+#include "test_macros.h"
int main()
{
std::error_code x;
- (void) x.category(); // returns a std::error_category &
- (void) x.default_error_condition(); // std::error_condition
- (void) x.message(); // returns a std::string
+ TEST_IGNORE_NODISCARD x.category(); // returns a std::error_category &
+ TEST_IGNORE_NODISCARD x.default_error_condition(); // std::error_condition
+ TEST_IGNORE_NODISCARD x.message(); // returns a std::string
}
OpenPOWER on IntegriCloud