summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/opeq6.C
blob: ead4797a3f285dbe611975f17a9419717135da97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// { dg-do assemble  }
// Testcase for wrongful generation of operator =.

class ivResource {
public:
  ivResource ();
private:
  ivResource & operator =(const ivResource &);
};

class ivButtonState : virtual public ivResource {
public:
  void operator=(ivButtonState &);
};

class ivPrintBS : public ivButtonState {
};

void f ()
{
  ivPrintBS a, b;
  a = b;
}