Fix gcc.c-torture/execute/ieee/cdivchkf.c on hpux
[official-gcc.git] / libvtv / testsuite / libvtv.cc / derived-main.cpp
blob0933ff696210d7da4803977ea304a70cc66bd5dc
1 // { dg-do run }
3 #include "lib.h"
5 struct Derived: public Base
7 virtual ~Derived()
8 { printf("In Derived destructor\n"); }
9 };
11 int main()
13 Derived * d = new Derived;
14 Destroy(d);
15 Base * pp = GetPrivate();
16 delete pp; // Virtual call #2