libstdc++-v3/testsuite/20_util/headers/memory/version.cc
raw| 1 | // { dg-do preprocess { target c++17 } } |
| 2 | // { dg-add-options no_pch } |
| 3 | |
| 4 | #include <memory> |
| 5 | |
| 6 | #if __cpp_lib_allocator_traits_is_always_equal != 201411L |
| 7 | # error "Feature-test macro __cpp_lib_allocator_traits_is_always_equal has wrong value in <version>" |
| 8 | #endif |
| 9 | |
| 10 | #if __cpp_lib_addressof_constexpr != 201603L |
| 11 | # error "Feature-test macro __cpp_lib_addressof_constexpr has wrong value in <version>" |
| 12 | #endif |