aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/destrprint.cc
blob: 0def8e482725d04cbe80a29995bfe45615b9fd4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

class Base
{
public:
  int x, y;

  Base() : x(0), y(1)
  {
  }

  virtual ~Base()
  {
    // Break here.
  }
};

class Derived : public Base
{
public:
  int z;

  Derived() : Base(), z(23)
  {
  }

  ~Derived()
  {
  }
};

int main()
{
  Derived d;

  return 0;
}