c++: further optimize tsubst_template_decl
[official-gcc.git] / libvtv / testsuite / libvtv.cc / derived-lib.cpp
blob375dbe41bde4471993593600dadc078cb2ab1b15
1 #include "lib.h"
3 struct Derived_Private : public Base
5 virtual ~Derived_Private()
6 { printf("in Derived_Private destructor\n"); }
7 };
9 Base * GetPrivate()
11 return new Derived_Private();
14 void Destroy(Base * pb)
16 delete pb; // Virtual call #1