blob: ead4797a3f285dbe611975f17a9419717135da97 [file] [log] [blame]
// { 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;
}