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_code 12 13 // Make sure that the error_code bits of <system_error> are self-contained. 14 15 #include <system_error> 16 #include "test_macros.h" 17 main()18int main() 19 { 20 std::error_code x; 21 TEST_IGNORE_NODISCARD x.category(); // returns a std::error_category & 22 TEST_IGNORE_NODISCARD x.default_error_condition(); // std::error_condition 23 TEST_IGNORE_NODISCARD x.message(); // returns a std::string 24 } 25