xref: /netbsd-src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.cp/destrprint.cc (revision a5a4af3bd380a7b58b758d9b311cef9f7c34aeb4)
1 
2 class Base
3 {
4 public:
5   int x, y;
6 
Base()7   Base() : x(0), y(1)
8   {
9   }
10 
~Base()11   virtual ~Base()
12   {
13     // Break here.
14   }
15 };
16 
17 class Derived : public Base
18 {
19 public:
20   int z;
21 
Derived()22   Derived() : Base(), z(23)
23   {
24   }
25 
~Derived()26   ~Derived()
27   {
28   }
29 };
30 
main()31 int main()
32 {
33   Derived d;
34 
35   return 0;
36 }
37