Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / gcc.dg / parse-else-error-4.c
blob617c3f3e3f00cf0760cdbef1dd79a1d2f418e6e2
1 /* PR 23722 */
2 /* { dg-do compile } */
3 /* { dg-options "-fsyntax-only" } */
4 int f()
6 if (1)
8 return 1;
10 else
12 else; /* { dg-error "'else' without a previous 'if'" } */