summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/shadow1.C
blob: 9fa40dfce6b84c3dbd064a3ae4a842e3de3dc300 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// { dg-do assemble  }

template <class T>
struct S {
  typedef T X;

  class C {
    typedef T X;
  };
};

template <int I>
struct S2 {
  enum { A = I };

  void f() {
    int A;
  }
};