Debian Codegraph @

libcxx/test/std/language.support/support.limits/support.limits.general/iomanip.version.compile.pass.cpp

raw
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 // WARNING: This test was generated by generate_feature_test_macro_components.py
10 // and should not be edited manually.
11 //
12 // clang-format off
13
14 // UNSUPPORTED: no-localization
15
16 // <iomanip>
17
18 // Test the feature test macros defined by <iomanip>
19
20 /* Constant Value
21 __cpp_lib_quoted_string_io 201304L [C++14]
22 */
23
24 #include <iomanip>
25 #include "test_macros.h"
26
27 #if TEST_STD_VER < 14
28
29 # ifdef __cpp_lib_quoted_string_io
30 # error "__cpp_lib_quoted_string_io should not be defined before c++14"
31 # endif
32
33 #elif TEST_STD_VER == 14
34
35 # if !defined(_LIBCPP_VERSION) || !defined(_LIBCPP_HAS_NO_LOCALIZATION)
36 # ifndef __cpp_lib_quoted_string_io
37 # error "__cpp_lib_quoted_string_io should be defined in c++14"
38 # endif
39 # if __cpp_lib_quoted_string_io != 201304L
40 # error "__cpp_lib_quoted_string_io should have the value 201304L in c++14"
41 # endif
42 # else
43 # ifdef __cpp_lib_quoted_string_io
44 # error "__cpp_lib_quoted_string_io should not be defined when the requirement '!defined(_LIBCPP_VERSION) || !defined(_LIBCPP_HAS_NO_LOCALIZATION)' is not met!"
45 # endif
46 # endif
47
48 #elif TEST_STD_VER == 17
49
50 # if !defined(_LIBCPP_VERSION) || !defined(_LIBCPP_HAS_NO_LOCALIZATION)
51 # ifndef __cpp_lib_quoted_string_io
52 # error "__cpp_lib_quoted_string_io should be defined in c++17"
53 # endif
54 # if __cpp_lib_quoted_string_io != 201304L
55 # error "__cpp_lib_quoted_string_io should have the value 201304L in c++17"
56 # endif
57 # else
58 # ifdef __cpp_lib_quoted_string_io
59 # error "__cpp_lib_quoted_string_io should not be defined when the requirement '!defined(_LIBCPP_VERSION) || !defined(_LIBCPP_HAS_NO_LOCALIZATION)' is not met!"
60 # endif
61 # endif
62
63 #elif TEST_STD_VER == 20
64
65 # if !defined(_LIBCPP_VERSION) || !defined(_LIBCPP_HAS_NO_LOCALIZATION)
66 # ifndef __cpp_lib_quoted_string_io
67 # error "__cpp_lib_quoted_string_io should be defined in c++20"
68 # endif
69 # if __cpp_lib_quoted_string_io != 201304L
70 # error "__cpp_lib_quoted_string_io should have the value 201304L in c++20"
71 # endif
72 # else
73 # ifdef __cpp_lib_quoted_string_io
74 # error "__cpp_lib_quoted_string_io should not be defined when the requirement '!defined(_LIBCPP_VERSION) || !defined(_LIBCPP_HAS_NO_LOCALIZATION)' is not met!"
75 # endif
76 # endif
77
78 #elif TEST_STD_VER == 23
79
80 # if !defined(_LIBCPP_VERSION) || !defined(_LIBCPP_HAS_NO_LOCALIZATION)
81 # ifndef __cpp_lib_quoted_string_io
82 # error "__cpp_lib_quoted_string_io should be defined in c++23"
83 # endif
84 # if __cpp_lib_quoted_string_io != 201304L
85 # error "__cpp_lib_quoted_string_io should have the value 201304L in c++23"
86 # endif
87 # else
88 # ifdef __cpp_lib_quoted_string_io
89 # error "__cpp_lib_quoted_string_io should not be defined when the requirement '!defined(_LIBCPP_VERSION) || !defined(_LIBCPP_HAS_NO_LOCALIZATION)' is not met!"
90 # endif
91 # endif
92
93 #elif TEST_STD_VER > 23
94
95 # if !defined(_LIBCPP_VERSION) || !defined(_LIBCPP_HAS_NO_LOCALIZATION)
96 # ifndef __cpp_lib_quoted_string_io
97 # error "__cpp_lib_quoted_string_io should be defined in c++26"
98 # endif
99 # if __cpp_lib_quoted_string_io != 201304L
100 # error "__cpp_lib_quoted_string_io should have the value 201304L in c++26"
101 # endif
102 # else
103 # ifdef __cpp_lib_quoted_string_io
104 # error "__cpp_lib_quoted_string_io should not be defined when the requirement '!defined(_LIBCPP_VERSION) || !defined(_LIBCPP_HAS_NO_LOCALIZATION)' is not met!"
105 # endif
106 # endif
107
108 #endif // TEST_STD_VER > 23
109