summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/gdb2384.cc
blob: 81cfcb5bdc1e93909bfd998d17c5a242580a09a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "gdb2384-base.h"

class derived : public base
{
 public:
  derived (int);
};

derived::derived (int _x)
  : base (_x)
{
}

int g;

int
main ()
{
  derived d (42);
  g = d.meth (); // set breakpoint here
  return 0;
}