1 //===----------------------------------------------------------------------===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 // <ios> 10 11 // template <> struct is_error_code_enum<io_errc> : public true_type {}; 12 13 #include <ios> 14 #include "test_macros.h" 15 main(int,char **)16int main(int, char**) 17 { 18 static_assert(std::is_error_code_enum <std::io_errc>::value, ""); 19 #if TEST_STD_VER > 14 20 static_assert(std::is_error_code_enum_v<std::io_errc>, ""); 21 #endif 22 23 return 0; 24 } 25