aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/pr-1210.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.cp/pr-1210.cc')
-rw-r--r--gdb/testsuite/gdb.cp/pr-1210.cc19
1 files changed, 19 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/pr-1210.cc b/gdb/testsuite/gdb.cp/pr-1210.cc
new file mode 100644
index 0000000..5747e5d
--- /dev/null
+++ b/gdb/testsuite/gdb.cp/pr-1210.cc
@@ -0,0 +1,19 @@
+class A
+{
+};
+
+class B : virtual public A
+{
+};
+
+class C : public A
+{
+ protected:
+ B myB;
+};
+
+int main()
+{
+ C *obj = new C();
+ return 0;
+}