summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/scope-1.c
blob: cedd0b48ccb2026c5b4ae98759f2c4fe9a6f40a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
int v = 3;

f ()
{
  int v = 4;
  {
    extern int v;
    if (v != 3)
      abort ();
  }
}

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