diff options
Diffstat (limited to 'libstdc++-v3/testsuite/23_containers/vector/cons/constexpr.cc')
-rw-r--r-- | libstdc++-v3/testsuite/23_containers/vector/cons/constexpr.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/23_containers/vector/cons/constexpr.cc b/libstdc++-v3/testsuite/23_containers/vector/cons/constexpr.cc index f5d2f08faf2..e6324ad4a0a 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/cons/constexpr.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/cons/constexpr.cc @@ -3,6 +3,13 @@ // { dg-xfail-if "not supported" { debug_mode } } #include <vector> + +#ifndef __cpp_lib_constexpr_vector +# error "Feature test macro for constexpr vector is missing in <vector>" +#elif __cpp_lib_constexpr_vector != 201907L +# error "Feature test macro for constexpr vector has wrong value in <vector>" +#endif + #include <testsuite_hooks.h> #include <testsuite_iterators.h> |