aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/classes.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.cp/classes.cc')
-rw-r--r--gdb/testsuite/gdb.cp/classes.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/classes.cc b/gdb/testsuite/gdb.cp/classes.cc
index 927aad3..913627f 100644
--- a/gdb/testsuite/gdb.cp/classes.cc
+++ b/gdb/testsuite/gdb.cp/classes.cc
@@ -400,8 +400,11 @@ class Base1 {
public:
int x;
Base1(int i) { x = i; }
+ ~Base1 () { }
};
+typedef Base1 base1;
+
class Foo
{
public:
@@ -564,6 +567,8 @@ void use_methods ()
i = class_param.Aref_x (g_A);
i = class_param.Aval_a (g_A);
i = class_param.Aval_x (g_A);
+
+ base1 b (3);
}