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