Debian Codegraph @

gcc/testsuite/gcc.dg/noncompile/scope.c

raw
1 extern void abort (void);
2 extern void exit (int);
3 static int v = 3;
4
5 void
6 f ()
7 {
8 int v = 4;
9 {
10 extern int v; /* { dg-error "static" } */
11 if (v != 3)
12 abort ();
13 }
14 }
15
16 int
17 main ()
18 {
19 f ();
20 exit (0);
21 }