gcc/libvtv/testsuite/libvtv.cc/derived-lib.cpp
Caroline Tice 41e96dc8f0 Update libvtv testsuite so that most of the tests now run under
the dejagnu test harness.

From-SVN: r202373
2013-09-08 16:35:14 -07:00

19 lines
260 B
C++

#include "lib.h"
struct Derived_Private : public Base
{
virtual ~Derived_Private()
{ printf("in Derived_Private destructor\n"); }
};
Base * GetPrivate()
{
return new Derived_Private();
}
void Destroy(Base * pb)
{
delete pb; // Virtual call #1
}