aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/noncompile/scope.c
blob: 7f09c27cffd840286503b695658ed1f4c9f976e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
extern void abort (void);
extern void exit (int);
static int v = 3;

f ()
{
  int v = 4;
  {
    extern int v; /* { dg-error "static" } */  
    if (v != 3)
      abort ();
  }
}

main ()
{
  f ();
  exit (0);
}