libstdc++-v3/testsuite/20_util/specialized_algorithms/feature_test_macro.cc
raw| 1 | // { dg-do compile { target c++17 } } |
| 2 | // { dg-add-options no_pch } |
| 3 | |
| 4 | #include <memory> |
| 5 | |
| 6 | #ifndef __cpp_lib_raw_memory_algorithms |
| 7 | # error "Feature-test macro for raw memory algorithms missing" |
| 8 | #elif __cplusplus > 202302L |
| 9 | # if __cpp_lib_raw_memory_algorithms < 202411L |
| 10 | # error "Feature-test macro for raw memory algorithms has wrong value" |
| 11 | # endif |
| 12 | #elif __cpp_lib_raw_memory_algorithms < 201606L |
| 13 | # error "Feature-test macro for raw memory algorithms has wrong value" |
| 14 | #endif |