summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/debug/pr106261.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/debug/pr106261.C')
-rw-r--r--gcc/testsuite/g++.dg/debug/pr106261.C36
1 files changed, 36 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/debug/pr106261.C b/gcc/testsuite/g++.dg/debug/pr106261.C
new file mode 100644
index 00000000000..6dee7e68ff5
--- /dev/null
+++ b/gcc/testsuite/g++.dg/debug/pr106261.C
@@ -0,0 +1,36 @@
+// PR debug/106261
+// { dg-do compile }
+// { dg-options "-dx -fno-dwarf2-cfi-asm" }
+
+struct A
+{
+ virtual void foo ();
+ int a;
+};
+class C : virtual public A
+{
+};
+struct B
+{
+ A *b;
+
+ B (A *x) : b (x) { b->foo (); }
+};
+struct E
+{
+ virtual ~E ();
+};
+class D : public C, E
+{
+};
+struct F : D
+{
+ F (int);
+
+ static void bar ()
+ {
+ F a (0);
+ B b (&a);
+ }
+};
+void baz () { F::bar (); }