diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/override1.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/override1.C | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/override1.C b/gcc/testsuite/g++.old-deja/g++.other/override1.C new file mode 100644 index 000000000..62d55a72f --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/override1.C @@ -0,0 +1,20 @@ +// { dg-do assemble } +// Origin: Frank Pilhofer <fp@fpx.de> + +struct A { +virtual void f (); +}; + +struct B : virtual public A { +void f (); +}; + +struct C : virtual public A { +void f (); +}; + +struct D : virtual public B, virtual public C { +void f (); +}; + +struct Di : virtual public B, virtual public C, virtual public D {}; |