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