summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/parse-decl-after-if.c
blob: f48e6dfc26b2c94a3aec9e3dd6ae3cfebb61589e (plain)
1
2
3
4
5
6
7
8
9
10
11
/* Parse error recovery
{ dg-do compile }
{ dg-options "-fsyntax-only" }
*/

void f(x)
{
  if (x > 1)
    int ret = 1; /* { dg-error "expected expression before 'int'" } */

}