summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c99-static-assert-1.c
blob: 23477360e108c3d78e14d89a4f8f23bfc0f6f7a4 (plain)
1
2
3
4
5
/* Test for static assertions not in C99.  */
/* { dg-do compile } */
/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */

_Static_assert (1, ""); /* { dg-error "ISO C99 does not support '_Static_assert'" } */