diff options
Diffstat (limited to 'test/std/diagnostics/syserr/syserr.errcondition/syserr.errcondition.overview/types.pass.cpp')
-rw-r--r-- | test/std/diagnostics/syserr/syserr.errcondition/syserr.errcondition.overview/types.pass.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/std/diagnostics/syserr/syserr.errcondition/syserr.errcondition.overview/types.pass.cpp b/test/std/diagnostics/syserr/syserr.errcondition/syserr.errcondition.overview/types.pass.cpp index 5bbca295f..62539ab3e 100644 --- a/test/std/diagnostics/syserr/syserr.errcondition/syserr.errcondition.overview/types.pass.cpp +++ b/test/std/diagnostics/syserr/syserr.errcondition/syserr.errcondition.overview/types.pass.cpp @@ -13,10 +13,11 @@ // Make sure that the error_condition bits of <system_error> are self-contained. #include <system_error> +#include "test_macros.h" int main() { std::error_condition x = std::errc(0); - (void) x.category(); // returns a std::error_condition & - (void) x.message(); // returns a std::string + TEST_IGNORE_NODISCARD x.category(); // returns a std::error_condition & + TEST_IGNORE_NODISCARD x.message(); // returns a std::string } |