summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/scope1.C
blob: 0b349f2b20f5d7b0912e067ee482a4074ae7e909 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do run  }
// Testcase for proper scoping of local externs.

int x = 1;

int main()
{   
  int x = 2;
  {
    extern int x;
    return (x != 1);
  }
}