| 1 |
// { dg-do preprocess { target c++23 } } |
| 2 |
// { dg-add-options no_pch } |
| 3 |
|
| 4 |
#include <memory> |
| 5 |
|
| 6 |
#ifndef __cpp_lib_out_ptr |
| 7 |
# error "Feature test macro for out_ptr is missing in <memory>" |
| 8 |
#elif __cpp_lib_out_ptr < 202106L |
| 9 |
# error "Feature test macro for out_ptr has wrong value in <memory>" |
| 10 |
#endif |
| 11 |
|
| 12 |
#undef __cpp_lib_out_ptr |
| 13 |
#include <version> |
| 14 |
|
| 15 |
#ifndef __cpp_lib_out_ptr |
| 16 |
# error "Feature test macro for out_ptr is missing in <version>" |
| 17 |
#elif __cpp_lib_out_ptr < 202106L |
| 18 |
# error "Feature test macro for out_ptr has wrong value in <version>" |
| 19 |
#endif |