Debian Codegraph @

libstdc++-v3/testsuite/std/ranges/conv/version.cc

raw
1 // { dg-do preprocess { target c++23 } }
2 // { dg-add-options no_pch }
3
4 #include <ranges>
5
6 #ifndef __cpp_lib_ranges_to_container
7 # error "Feature test macro for ranges_to_container is missing in <ranges>"
8 #elif __cpp_lib_ranges_to_container < 202202L
9 # error "Feature test macro for ranges_to_container has wrong value in <ranges>"
10 #endif
11
12 #undef __cpp_lib_ranges_to_container
13 #include <version>
14
15 #ifndef __cpp_lib_ranges_to_container
16 # error "Feature test macro for ranges_to_container is missing in <version>"
17 #elif __cpp_lib_ranges_to_container < 202202L
18 # error "Feature test macro for ranges_to_container has wrong value in <version>"
19 #endif