|
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 | // UNSUPPORTED: no-localization |
15 | 13 |
|
16 | 14 | // <spanstream> |
17 | 15 |
|
18 | 16 | // Test the feature test macros defined by <spanstream> |
19 | 17 |
|
20 | | -/* Constant Value |
21 | | - __cpp_lib_spanstream 202106L [C++23] |
22 | | -*/ |
| 18 | +// clang-format off |
23 | 19 |
|
24 | 20 | #include <spanstream> |
25 | 21 | #include "test_macros.h" |
26 | 22 |
|
27 | 23 | #if TEST_STD_VER < 14 |
28 | 24 |
|
29 | | -# ifdef __cpp_lib_spanstream |
30 | | -# error "__cpp_lib_spanstream should not be defined before c++23" |
31 | | -# endif |
| 25 | +# ifdef __cpp_lib_spanstream |
| 26 | +# error "__cpp_lib_spanstream should not be defined before c++23" |
| 27 | +# endif |
32 | 28 |
|
33 | 29 | #elif TEST_STD_VER == 14 |
34 | 30 |
|
35 | | -# ifdef __cpp_lib_spanstream |
36 | | -# error "__cpp_lib_spanstream should not be defined before c++23" |
37 | | -# endif |
| 31 | +# ifdef __cpp_lib_spanstream |
| 32 | +# error "__cpp_lib_spanstream should not be defined before c++23" |
| 33 | +# endif |
38 | 34 |
|
39 | 35 | #elif TEST_STD_VER == 17 |
40 | 36 |
|
41 | | -# ifdef __cpp_lib_spanstream |
42 | | -# error "__cpp_lib_spanstream should not be defined before c++23" |
43 | | -# endif |
| 37 | +# ifdef __cpp_lib_spanstream |
| 38 | +# error "__cpp_lib_spanstream should not be defined before c++23" |
| 39 | +# endif |
44 | 40 |
|
45 | 41 | #elif TEST_STD_VER == 20 |
46 | 42 |
|
47 | | -# ifdef __cpp_lib_spanstream |
48 | | -# error "__cpp_lib_spanstream should not be defined before c++23" |
49 | | -# endif |
| 43 | +# ifdef __cpp_lib_spanstream |
| 44 | +# error "__cpp_lib_spanstream should not be defined before c++23" |
| 45 | +# endif |
50 | 46 |
|
51 | 47 | #elif TEST_STD_VER == 23 |
52 | 48 |
|
53 | | -# ifndef __cpp_lib_spanstream |
54 | | -# error "__cpp_lib_spanstream should be defined in c++23" |
55 | | -# endif |
56 | | -# if __cpp_lib_spanstream != 202106L |
57 | | -# error "__cpp_lib_spanstream should have the value 202106L in c++23" |
58 | | -# endif |
| 49 | +# ifndef __cpp_lib_spanstream |
| 50 | +# error "__cpp_lib_spanstream should be defined in c++23" |
| 51 | +# endif |
| 52 | +# if __cpp_lib_spanstream != 202106L |
| 53 | +# error "__cpp_lib_spanstream should have the value 202106L in c++23" |
| 54 | +# endif |
59 | 55 |
|
60 | 56 | #elif TEST_STD_VER > 23 |
61 | 57 |
|
62 | | -# ifndef __cpp_lib_spanstream |
63 | | -# error "__cpp_lib_spanstream should be defined in c++26" |
64 | | -# endif |
65 | | -# if __cpp_lib_spanstream != 202106L |
66 | | -# error "__cpp_lib_spanstream should have the value 202106L in c++26" |
67 | | -# endif |
| 58 | +# ifndef __cpp_lib_spanstream |
| 59 | +# error "__cpp_lib_spanstream should be defined in c++26" |
| 60 | +# endif |
| 61 | +# if __cpp_lib_spanstream != 202106L |
| 62 | +# error "__cpp_lib_spanstream should have the value 202106L in c++26" |
| 63 | +# endif |
68 | 64 |
|
69 | 65 | #endif // TEST_STD_VER > 23 |
70 | 66 |
|
| 67 | +// clang-format on |
| 68 | + |
0 commit comments