]>
git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/testsuite/21_strings/basic_string/version.cc
1 // { dg-do compile { target c++17 } }
2 // { dg-require-effective-target hosted }
6 #ifndef __cpp_lib_constexpr_string
7 # error "Feature-test macro for constexpr std::string missing in <version>"
10 #if __cplusplus == 201703L
11 # if __cpp_lib_constexpr_string != 201611L
12 # error "Feature-test macro for constexpr std::string has wrong value for C++17 in <version>"
16 #if __cplusplus == 202002L
17 # if _GLIBCXX_USE_CXX11_ABI
18 # if __cpp_lib_constexpr_string != 201907L
19 # error "Feature-test macro for constexpr std::string has wrong value for C++20 in <version>"
22 # if __cpp_lib_constexpr_string != 201811L
23 # error "Feature-test macro for constexpr std::string has wrong value for C++20 in <version>"