summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/pt2.C
blob: e2f77ecf04b9ccc4964018f6f2a66635ebf21857 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// { dg-do run  }
class A {
public:
};

template <class T>
class B: public virtual A {
public:
  B ();
  ~B ();
};

template <class T>
B<T>::B () { }

template <class T>
B<T>::~B () { }

int main () {
  B<int> ab;

  return 0;
}