]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.bob/inherit1.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.bob / inherit1.C
diff --git a/gcc/testsuite/g++.old-deja/g++.bob/inherit1.C b/gcc/testsuite/g++.old-deja/g++.bob/inherit1.C
deleted file mode 100644 (file)
index 4d62e38..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-// Build don't link: 
-class A {
-char str[10];
-public:
-    char* m1 () { return str;};
-};
-
-class C : public A {
-public:
-};
-
-class B : public A {
-public:
-    char* m1 () { C::m1(); return ""; } // ERROR - 
-};
-
-int main () {
-A a;
-B b;
-C c;
-
-a.m1();
-c.m1();
-b.m1();
-}