2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.bob / inherit2.C
blobe943a1caa18d960e05a94093437dfc6e49eb9e1b
1 // { dg-do assemble  }
2 #include <stdlib.h>
4 class A {
5 public:
6   void z();
7   A(void) {}
8 private:
9   A(const A &) { abort(); } // { dg-error "" } 
10   const A& operator =(const A &) { abort(); }
13 class B : public A {
14 public:
15   B(void) {}
18 void f(B b) {
21 void g() {
22   B h;
23   f(h); // { dg-error "" }