2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / virtual2.C
bloba056a159a070f3e84c9ea82186d03859c6aa6ea8
1 // { dg-do assemble  }
2 // Origin: Mark Mitchell <mark@codesourcery.com>
4 template <class T>
5 struct B 
7   virtual void f() = 0;
8 };
10 template <class T>
11 struct D : public B<T> {
12   virtual void f();
15 void g() {
16   B<int>* bi = new D<int>;
19 template <class T>
20 void B<T>::f() {}