1 //===----------------------------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 // <system_error>
11 // class error_condition
12 
13 // Make sure that the error_condition bits of <system_error> are self-contained.
14 
15 #include <system_error>
16 #include "test_macros.h"
17 
main()18 int main()
19 {
20     std::error_condition x = std::errc(0);
21     TEST_IGNORE_NODISCARD  x.category();   // returns a std::error_condition &
22     TEST_IGNORE_NODISCARD  x.message();    // returns a std::string
23 }
24