]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/cpp/gnu2x-warning-2.c
c: Refer more consistently to C23 not C2X
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / cpp / gnu2x-warning-2.c
CommitLineData
094a609c 1/* Test #warning in C23: -Wc11-c2x-comapt. */
d7c30001
JM
2/* { dg-do preprocess } */
3/* { dg-options "-std=gnu2x -pedantic-errors -Wc11-c2x-compat" } */
4
5#warning example text /* { dg-warning "example text" } */
094a609c 6/* { dg-warning "#warning before C23 is a GCC extension" "compat" { target *-*-* } .-1 } */