| 1 |
// { dg-do compile { target c++17 } } |
| 2 |
// { dg-require-effective-target hosted } |
| 3 |
// { dg-add-options no_pch } |
| 4 |
|
| 5 |
#include <version> |
| 6 |
|
| 7 |
#ifndef __cpp_lib_constexpr_string |
| 8 |
# error Feature-test macro for constexpr char_traits is missing in <version> |
| 9 |
#elif __cpp_lib_constexpr_string < (__cplusplus == 201703 ? 201611 : 201811) |
| 10 |
# error Feature-test macro for constexpr char_traits has the wrong value in <version> |
| 11 |
#endif |
| 12 |
|
| 13 |
// We also provide this non-standard macro for P0426R1 and P1032R1. |
| 14 |
#ifndef __cpp_lib_constexpr_char_traits |
| 15 |
# error Feature-test macro for constexpr char_traits is missing in <version> |
| 16 |
#elif __cpp_lib_constexpr_char_traits != (__cplusplus == 201703 ? 201611 : 201811) |
| 17 |
# error Feature-test macro for constexpr char_traits has the wrong value in <version> |
| 18 |
#endif |