2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / opeq6.C
blobead4797a3f285dbe611975f17a9419717135da97
1 // { dg-do assemble  }
2 // Testcase for wrongful generation of operator =.
4 class ivResource {
5 public:
6   ivResource ();
7 private:
8   ivResource & operator =(const ivResource &);
9 };
11 class ivButtonState : virtual public ivResource {
12 public:
13   void operator=(ivButtonState &);
16 class ivPrintBS : public ivButtonState {
19 void f ()
21   ivPrintBS a, b;
22   a = b;