xref: /llvm-project/libcxx/test/std/input.output/iostreams.base/is_error_code_enum_io_errc.pass.cpp (revision a8d1182f661ccecd99efd4e543fddf3172c67a95)
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 **)16 int 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