OSDN Git Service

PR tree-optimization/30843
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / noncompile / scope.c
1 extern void abort (void);
2 extern void exit (int);
3 static int v = 3;
4
5 f ()
6 {
7   int v = 4;
8   {
9     extern int v; /* { dg-error "static" } */  
10     if (v != 3)
11       abort ();
12   }
13 }
14
15 main ()
16 {
17   f ();
18   exit (0);
19 }