|
5 | 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
6 | 6 | // |
7 | 7 | //===----------------------------------------------------------------------===// |
8 | | -// |
9 | | -// WARNING: This test was generated by generate_feature_test_macro_components.py |
| 8 | + |
| 9 | +// WARNING: This test was generated by |
| 10 | +// generate_feature_test_macro_components.py |
10 | 11 | // and should not be edited manually. |
11 | | -// |
12 | | -// clang-format off |
13 | 12 |
|
14 | 13 | // <any> |
15 | 14 |
|
16 | 15 | // Test the feature test macros defined by <any> |
17 | 16 |
|
18 | | -/* Constant Value |
19 | | - __cpp_lib_any 201606L [C++17] |
20 | | -*/ |
| 17 | +// clang-format off |
21 | 18 |
|
22 | 19 | #include <any> |
23 | 20 | #include "test_macros.h" |
24 | 21 |
|
25 | 22 | #if TEST_STD_VER < 14 |
26 | 23 |
|
27 | | -# ifdef __cpp_lib_any |
28 | | -# error "__cpp_lib_any should not be defined before c++17" |
29 | | -# endif |
| 24 | +# ifdef __cpp_lib_any |
| 25 | +# error "__cpp_lib_any should not be defined before c++17" |
| 26 | +# endif |
30 | 27 |
|
31 | 28 | #elif TEST_STD_VER == 14 |
32 | 29 |
|
33 | | -# ifdef __cpp_lib_any |
34 | | -# error "__cpp_lib_any should not be defined before c++17" |
35 | | -# endif |
| 30 | +# ifdef __cpp_lib_any |
| 31 | +# error "__cpp_lib_any should not be defined before c++17" |
| 32 | +# endif |
36 | 33 |
|
37 | 34 | #elif TEST_STD_VER == 17 |
38 | 35 |
|
39 | | -# ifndef __cpp_lib_any |
40 | | -# error "__cpp_lib_any should be defined in c++17" |
41 | | -# endif |
42 | | -# if __cpp_lib_any != 201606L |
43 | | -# error "__cpp_lib_any should have the value 201606L in c++17" |
44 | | -# endif |
| 36 | +# ifndef __cpp_lib_any |
| 37 | +# error "__cpp_lib_any should be defined in c++17" |
| 38 | +# endif |
| 39 | +# if __cpp_lib_any != 201606L |
| 40 | +# error "__cpp_lib_any should have the value 201606L in c++17" |
| 41 | +# endif |
45 | 42 |
|
46 | 43 | #elif TEST_STD_VER == 20 |
47 | 44 |
|
48 | | -# ifndef __cpp_lib_any |
49 | | -# error "__cpp_lib_any should be defined in c++20" |
50 | | -# endif |
51 | | -# if __cpp_lib_any != 201606L |
52 | | -# error "__cpp_lib_any should have the value 201606L in c++20" |
53 | | -# endif |
| 45 | +# ifndef __cpp_lib_any |
| 46 | +# error "__cpp_lib_any should be defined in c++20" |
| 47 | +# endif |
| 48 | +# if __cpp_lib_any != 201606L |
| 49 | +# error "__cpp_lib_any should have the value 201606L in c++20" |
| 50 | +# endif |
54 | 51 |
|
55 | 52 | #elif TEST_STD_VER == 23 |
56 | 53 |
|
57 | | -# ifndef __cpp_lib_any |
58 | | -# error "__cpp_lib_any should be defined in c++23" |
59 | | -# endif |
60 | | -# if __cpp_lib_any != 201606L |
61 | | -# error "__cpp_lib_any should have the value 201606L in c++23" |
62 | | -# endif |
| 54 | +# ifndef __cpp_lib_any |
| 55 | +# error "__cpp_lib_any should be defined in c++23" |
| 56 | +# endif |
| 57 | +# if __cpp_lib_any != 201606L |
| 58 | +# error "__cpp_lib_any should have the value 201606L in c++23" |
| 59 | +# endif |
63 | 60 |
|
64 | 61 | #elif TEST_STD_VER > 23 |
65 | 62 |
|
66 | | -# ifndef __cpp_lib_any |
67 | | -# error "__cpp_lib_any should be defined in c++26" |
68 | | -# endif |
69 | | -# if __cpp_lib_any != 201606L |
70 | | -# error "__cpp_lib_any should have the value 201606L in c++26" |
71 | | -# endif |
| 63 | +# ifndef __cpp_lib_any |
| 64 | +# error "__cpp_lib_any should be defined in c++26" |
| 65 | +# endif |
| 66 | +# if __cpp_lib_any != 201606L |
| 67 | +# error "__cpp_lib_any should have the value 201606L in c++26" |
| 68 | +# endif |
72 | 69 |
|
73 | 70 | #endif // TEST_STD_VER > 23 |
74 | 71 |
|
| 72 | +// clang-format on |
| 73 | + |
0 commit comments