]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/gnu2x-static-assert-1.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / gnu2x-static-assert-1.c
1 /* Test C11 static assertions. Omitting the string diagnosed with
2 -Wc11-c2x-compat. */
3 /* { dg-do compile } */
4 /* { dg-options "-std=gnu2x -Wc11-c2x-compat" } */
5
6 _Static_assert (1); /* { dg-warning "does not support omitting the string" } */