blob: 41bb35b93f6d53f6004d84afaad0838f2508ee14 [file] [log] [blame]
// { dg-do preprocess { target c++23 } }
// { dg-require-effective-target hosted }
// { dg-add-options no_pch }
#include <version>
#ifndef __cpp_lib_to_chars
# error "Feature-test macro for to_chars missing in <version>"
#elif __cpp_lib_to_chars != (__cplusplus == 202302L ? 201611L : 202306L)
# error "Feature-test macro for to_chars has wrong value in <version>"
#endif
#ifndef __cpp_lib_constexpr_charconv
# error "Feature-test macro for constexpr charconv missing in <version>"
#elif __cpp_lib_constexpr_charconv != 202207L
# error "Feature-test macro for constexpr charconv has wrong value in <version>"
#endif