summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/syntax2.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/syntax2.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/syntax2.C28
1 files changed, 28 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/syntax2.C b/gcc/testsuite/g++.old-deja/g++.other/syntax2.C
new file mode 100644
index 000000000..159f28f89
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/syntax2.C
@@ -0,0 +1,28 @@
+// { dg-do assemble }
+// { dg-options "-fsyntax-only" }
+// Origin: Mark Mitchell <mark@codesourcery.com>
+
+struct B
+{
+ double d;
+
+ virtual void f ();
+};
+
+struct C: virtual public B
+{
+ char c;
+};
+
+struct D: virtual public B
+{
+ int i;
+ virtual void f ();
+};
+
+struct E : public C, public D
+{
+};
+
+E e;
+