Add new test to verify that the array index, limit, and stride are
[official-gcc.git] / gcc / testsuite / gcc.dg / parse-decl-after-label.c
blobf457c6a69bd222d3d751d320f23fab2af45a4538
1 /* PR 29062
2 { dg-do compile }
3 { dg-options "-fsyntax-only" }
4 */
6 int f(x)
8 if (x > 1)
10 goto finish;
12 return x;
14 finish:
15 int ret = 1; /* { dg-error "a label can only be part of a statement and a declaration is not a statement" } */
16 return ret;