Debian Codegraph @

libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/version.cc

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