Skip to content

Commit eda6e7f

Browse files
committed
Try again
1 parent 0090ce1 commit eda6e7f

File tree

1 file changed

+80
-0
lines changed

1 file changed

+80
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
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+
// UNSUPPORTED: no-localization
13+
14+
// <spanstream>
15+
16+
// Test the feature test macros defined by <spanstream>
17+
18+
// clang-format off
19+
20+
#include <spanstream>
21+
#include "test_macros.h"
22+
23+
#if TEST_STD_VER < 14
24+
25+
# ifdef __cpp_lib_spanstream
26+
# error "__cpp_lib_spanstream should not be defined before c++23"
27+
# endif
28+
29+
#elif TEST_STD_VER == 14
30+
31+
# ifdef __cpp_lib_spanstream
32+
# error "__cpp_lib_spanstream should not be defined before c++23"
33+
# endif
34+
35+
#elif TEST_STD_VER == 17
36+
37+
# ifdef __cpp_lib_spanstream
38+
# error "__cpp_lib_spanstream should not be defined before c++23"
39+
# endif
40+
41+
#elif TEST_STD_VER == 20
42+
43+
# ifdef __cpp_lib_spanstream
44+
# error "__cpp_lib_spanstream should not be defined before c++23"
45+
# endif
46+
47+
#elif TEST_STD_VER == 23
48+
49+
# if !defined(_LIBCPP_VERSION)
50+
# ifndef __cpp_lib_spanstream
51+
# error "__cpp_lib_spanstream should be defined in c++23"
52+
# endif
53+
# if __cpp_lib_spanstream != 202106L
54+
# error "__cpp_lib_spanstream should have the value 202106L in c++23"
55+
# endif
56+
# else
57+
# ifdef __cpp_lib_spanstream
58+
# error "__cpp_lib_spanstream should not be defined because it is unimplemented in libc++!"
59+
# endif
60+
# endif
61+
62+
#elif TEST_STD_VER > 23
63+
64+
# if !defined(_LIBCPP_VERSION)
65+
# ifndef __cpp_lib_spanstream
66+
# error "__cpp_lib_spanstream should be defined in c++26"
67+
# endif
68+
# if __cpp_lib_spanstream != 202106L
69+
# error "__cpp_lib_spanstream should have the value 202106L in c++26"
70+
# endif
71+
# else
72+
# ifdef __cpp_lib_spanstream
73+
# error "__cpp_lib_spanstream should not be defined because it is unimplemented in libc++!"
74+
# endif
75+
# endif
76+
77+
#endif // TEST_STD_VER > 23
78+
79+
// clang-format on
80+

0 commit comments

Comments
 (0)