Debian Codegraph @

libvtv/testsuite/libvtv.cc/derived-lib.cpp

raw
1 #include "lib.h"
2
3 struct Derived_Private : public Base
4 {
5 virtual ~Derived_Private()
6 { printf("in Derived_Private destructor\n"); }
7 };
8
9 Base * GetPrivate()
10 {
11 return new Derived_Private();
12 }
13
14 void Destroy(Base * pb)
15 {
16 delete pb; // Virtual call #1
17 }
18