summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/shadow1.C
blob: dfe99c7b22d5c39db540a0a842f113fd35658c8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Build don't link:

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;
  }
};