libstdc++-v3/testsuite/20_util/forward_like/version.cc
raw| 1 | // { dg-do preprocess { target c++23 } } |
| 2 | // { dg-add-options no_pch } |
| 3 | |
| 4 | #include <version> |
| 5 | |
| 6 | #ifndef __cpp_lib_forward_like |
| 7 | # error "Feature-test macro for forward_like missing in <version>" |
| 8 | #elif __cpp_lib_forward_like != 202207L |
| 9 | # error "Feature-test macro for forward_like has wrong value in <version>" |
| 10 | #endif |