FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / virtual2.C
blob59fab8952a5c35b0f8c0443d25ec346c74d37aa4
1 // Build don't link:
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() {}