aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/vtable1.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.law/vtable1.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.law/vtable1.C27
1 files changed, 27 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.law/vtable1.C b/gcc/testsuite/g++.old-deja/g++.law/vtable1.C
new file mode 100644
index 00000000000..c788c179054
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.law/vtable1.C
@@ -0,0 +1,27 @@
+// Build don't link:
+// GROUPS passed vtable
+// excess errors test - XFAIL *-*-*
+// vtable file
+// From: mrs@cygnus.com (Mike Stump)
+// Date: Wed, 20 Apr 1994 17:46:11 -0700
+// Subject: vtable name generation is wrong
+// Message-ID: <199404210046.RAA25652@rtl.cygnus.com>
+
+// prepare_fresh_vtable doesn't build the names of
+// vtables very well.
+
+struct B {
+ virtual void vf() { }
+};
+
+struct Main {
+ virtual void vf() { }
+};
+
+struct Other : public Main, public B {
+ virtual void vf() { }
+};
+
+struct D : public Main, public B, public Other {
+ virtual void vf() { }
+} a;