]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/cpp/gnu11-warning-1.c
c: Refer more consistently to C23 not C2X
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / cpp / gnu11-warning-1.c
1 /* Test #warning not in C11. */
2 /* { dg-do preprocess } */
3 /* { dg-options "-std=gnu11 -pedantic-errors" } */
4
5 #warning example text /* { dg-warning "example text" } */
6 /* { dg-error "#warning before C23 is a GCC extension" "pedantic" { target *-*-* } .-1 } */