1 // P2437R1 - Support for #warning
2 // { dg-do preprocess }
3 // { dg-options "-pedantic-errors" }
5 #warning example text /* { dg-warning "example text" } */
6 // { dg-error "'#warning' before C\\\+\\\+23 is a GCC extension" "pedantic" { target c++20_down } .-1 }