aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/parse-else-error-2.c
blob: ce59af3813e9a6c4e70eb93a0c9decfdb25f095c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR 23722 */
/* { dg-do compile } */
/* { dg-options "-fsyntax-only" } */
int f()
{
  if (1)
    {
      return 1;
  else /* { dg-error "expected .\}. before 'else'" } */
  {
      }
  }
} /* { dg-error "expected identifier or '\\(' before .\}. token" } */