aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/c90-static-assert-1.c
blob: d174ec9b10707836c5f3f6d4770d248903fd0f02 (plain)
1
2
3
4
5
/* Test for static assertions not in C90.  */
/* { dg-do compile } */
/* { dg-options "-std=iso9899:1990 -pedantic-errors" } */

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