X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.other%2Fambig3.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.other%2Fambig3.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=ebdd1ebc9a8f6ccfd5a0aaf6e64202f0b2c2f112;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.other/ambig3.C b/gcc/testsuite/g++.old-deja/g++.other/ambig3.C deleted file mode 100644 index ebdd1ebc..00000000 --- a/gcc/testsuite/g++.old-deja/g++.other/ambig3.C +++ /dev/null @@ -1,34 +0,0 @@ -// Build don't link: - -// Copyright (C) 2000 Free Software Foundation, Inc. -// Contributed by Nathan Sidwell 23 June 2000 - -// Origin GNATS bug report 69 from Glenn Ammons -// -// A base which derives a virtual base hides declarations in the virtual base, -// even if that virtual base is accessible via another path [10.2]/6. Make -// sure that non-virtual bases of the virtual base are also hidden, not matter -// what order bases are declared in. - -struct A {int a;}; -struct B : A {}; - -struct L1 : virtual B { int a; }; -struct L2 : virtual A { int a; }; - -struct R1 : virtual B {}; -struct R2 : virtual A {}; - -struct C1 : R1, L1 {}; -struct C2 : R2, L2 {}; - -struct D1 : L1, R1 {}; -struct D2 : L2, R2 {}; - -void fn (C1 *c1, D1 *d1, C2 *c2, D2 *d2) -{ - c1->a = 1; - d1->a = 1; - c2->a = 1; - d2->a = 1; -}