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

template <class A>
class TEST
{
public:
  TEST (A) {}
};

template <class A>
class TEST2
{
  static A i;
};

template <class A>
A TEST2 <A>::i (0);

TEST2 <TEST <int> > a;

template class TEST2 <TEST <int> >;