summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.robertl/eb6.C
blob: 6fddb8557ae9fb1205135e6b265118c2b1c62fd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do assemble  }
class A {
public:
  A() { t=0; }
  double t;
};
template <class T>
class B {
public:
  void f1() { new T; f2(); }
  void f2() { new T; }
};
template class B<A>;