]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/c11-static-assert-4.c
replace ISL with isl
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / c11-static-assert-4.c
CommitLineData
1bec9d5f 1/* Test C11 static assertions. More invalid assertions. */
32912286 2/* { dg-do compile } */
1bec9d5f 3/* { dg-options "-std=c11 -pedantic-errors" } */
32912286
JM
4
5/* Static assertions not valid in old-style parameter declarations
6 because declarations there must have declarators. */
7
8void
9f (i)
10 int i;
11 _Static_assert (1, ""); /* { dg-error "expected" } */
12{
13}