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