aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/virtual4.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/virtual4.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/virtual4.C25
1 files changed, 0 insertions, 25 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/virtual4.C b/gcc/testsuite/g++.old-deja/g++.other/virtual4.C
deleted file mode 100644
index 8a44ee14135..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.other/virtual4.C
+++ /dev/null
@@ -1,25 +0,0 @@
-// Build don't link:
-
-class A {
-public:
- virtual int foo() = 0; // ERROR - original definition
-};
-
-class B {
-public:
- virtual double foo() = 0;
-};
-
-class C
- : public A, public B
-{
-public:
- virtual double foo() { return 2; } // ERROR - conflicting return type
-};
-
-class D
- : public B, public A
-{
-public:
- virtual double foo() { return 2; } // ERROR - conflicting return type
-};