aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.bob/inherit2.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.bob/inherit2.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.bob/inherit2.C22
1 files changed, 0 insertions, 22 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.bob/inherit2.C b/gcc/testsuite/g++.old-deja/g++.bob/inherit2.C
deleted file mode 100644
index 52d35b0462c..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.bob/inherit2.C
+++ /dev/null
@@ -1,22 +0,0 @@
-// Build don't link:
-class A {
-public:
- void z();
- A(void) {}
-private:
- A(const A &) { abort(); } // ERROR -
- const A& operator =(const A &) { abort(); }
-};
-
-class B : public A {
-public:
- B(void) {}
-};
-
-void f(B b) {
-};
-
-void g() {
- B h;
- f(h); // ERROR -
-}