Remove mistakenly committed files
[gcc.git] / libstdc++-v3 / testsuite / 23_containers / array / requirements / version.cc
blob1930805e381a3bff7702c678d926842edf339a73
1 // { dg-do preprocess { target c++23 } }
2 // { dg-add-options no_pch }
4 #include <array>
6 #ifndef __cpp_lib_freestanding_array
7 # error "Feature test macro for freestanding std::array is missing in <array>"
8 #elif __cpp_lib_freestanding_array < 202311L
9 # error "Feature test macro for freestanding std::array has wrong value in <array>"
10 #endif
12 #undef __cpp_lib_freestanding_array
13 #include <version>
15 #ifndef __cpp_lib_freestanding_array
16 # error "Feature test macro for freestanding std::array is missing in <version>"
17 #elif __cpp_lib_freestanding_array < 202311L
18 # error "Feature test macro for freestanding std::array has wrong value in <version>"
19 #endif