aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/lookup7.C
blob: 55726a5d61318204ca26736f36506787a879b3a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Test for handling of type shadowing in function scope.

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