diff options
Diffstat (limited to 'gdb/testsuite/gdb.cp/gdb2384.cc')
-rw-r--r-- | gdb/testsuite/gdb.cp/gdb2384.cc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/gdb2384.cc b/gdb/testsuite/gdb.cp/gdb2384.cc new file mode 100644 index 0000000..81cfcb5 --- /dev/null +++ b/gdb/testsuite/gdb.cp/gdb2384.cc @@ -0,0 +1,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; +} |