Debian Codegraph @

libstdc++-v3/testsuite/21_strings/basic_string/numeric_conversions/version.cc

raw
1 // { dg-do compile }
2 // { dg-add-options no_pch }
3
4 #include <version>
5
6 #if __cplusplus > 202302L
7
8 #ifndef __cpp_lib_to_string
9 # error "Feature-test macro for std::to_string missing in <string>"
10 #elif __cpp_lib_to_string != 202306L
11 # error "Feature-test macro for std::to_string has wrong value in <string>"
12 #endif
13
14 #else
15
16 #ifdef __cpp_lib_to_string
17 # error "__cpp_lib_to_string should not be defined for C++23"
18 #endif
19
20 #endif