summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/lookup7.C
blob: 53c4a3b3ba0cccdc2f002df20cf920f296bee47d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do run  }
// Test for handling of type shadowing in function scope.

int main()
{
  int A = 42;
  struct A
  {
    enum { a };
  };
  A = A::a;
  return A;
}