Debian Codegraph @

gcc/testsuite/gcc.dg/cpp/c23-warning-2.c

raw
1 /* Test #warning in C23: -Wc11-c23-compat. */
2 /* { dg-do preprocess } */
3 /* { dg-options "-std=c23 -pedantic-errors -Wc11-c23-compat" } */
4
5 #warning example text /* { dg-warning "example text" } */
6 /* { dg-warning "'#warning' before C23 is a GCC extension" "compat" { target *-*-* } .-1 } */