Forbid declarations after label, case and default statements.
[cparser] / parsetest / shouldfail / missing.c
1 int test1(int a) {
2         if (a > 3) {
3                 return 1;
4         else {
5                 return 2;
6         }
7 }
8
9 int test2(int a, int b) {
10         return a ? 1 + : 2;
11 }
12
13 int test3(int b) {
14         return (b + ;
15 }
16
17 int test4(int a) {
18         return test2(a + , a);
19 }