aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.bob/inherit1.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.bob/inherit1.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.bob/inherit1.C25
1 files changed, 0 insertions, 25 deletions
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
index 4d62e3896f5..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.bob/inherit1.C
+++ /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();
-}