]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.other/lookup18.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / lookup18.C
diff --git a/gcc/testsuite/g++.old-deja/g++.other/lookup18.C b/gcc/testsuite/g++.old-deja/g++.other/lookup18.C
deleted file mode 100644 (file)
index 09549f7..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-// Test that referring to an ambiguous base in name lookup prevents
-// access to the field, even though the field is not ambiguous.
-
-// Build don't link:
-
-struct A {
-  int i;
-};
-struct B: virtual A { };
-struct C: public B { };
-struct D: public B { };
-struct E: public C, public D {
-  void f ();
-};
-
-void E::f() {
-  B::i = 0;                    // ERROR - B is ambiguous
-}
-
-void f () {
-  E e;
-  e.B::i = 0;                  // ERROR - B is ambiguous
-}