Debian Codegraph @

libstdc++-v3/testsuite/20_util/to_chars/version.cc

raw
1 // { dg-do preprocess { target c++23 } }
2 // { dg-require-effective-target hosted }
3 // { dg-add-options no_pch }
4
5 #include <version>
6
7 #ifndef __cpp_lib_to_chars
8 # error "Feature-test macro for to_chars missing in <version>"
9 #elif __cpp_lib_to_chars != (__cplusplus == 202302L ? 201611L : 202306L)
10 # error "Feature-test macro for to_chars has wrong value in <version>"
11 #endif
12
13 #ifndef __cpp_lib_constexpr_charconv
14 # error "Feature-test macro for constexpr charconv missing in <version>"
15 #elif __cpp_lib_constexpr_charconv != 202207L
16 # error "Feature-test macro for constexpr charconv has wrong value in <version>"
17 #endif