]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/std/input.output/iostreams.base/is_error_code_enum_io_errc.pass.cpp
Vendor import of libc++ trunk r290819:
[FreeBSD/FreeBSD.git] / test / std / input.output / iostreams.base / is_error_code_enum_io_errc.pass.cpp
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 // UNSUPPORTED: c++03
11
12 // <ios>
13
14 // template <> struct is_error_code_enum<io_errc> : public true_type {};
15
16 #include <ios>
17 #include "test_macros.h"
18
19 int main()
20 {
21     static_assert(std::is_error_code_enum  <std::io_errc>::value, "");
22 #if TEST_STD_VER > 14
23     static_assert(std::is_error_code_enum_v<std::io_errc>, "");
24 #endif
25 }