URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// Testcase for wrongful generation of operator =.
|
// Testcase for wrongful generation of operator =.
|
|
|
class ivResource {
|
class ivResource {
|
public:
|
public:
|
ivResource ();
|
ivResource ();
|
private:
|
private:
|
ivResource & operator =(const ivResource &);
|
ivResource & operator =(const ivResource &);
|
};
|
};
|
|
|
class ivButtonState : virtual public ivResource {
|
class ivButtonState : virtual public ivResource {
|
public:
|
public:
|
void operator=(ivButtonState &);
|
void operator=(ivButtonState &);
|
};
|
};
|
|
|
class ivPrintBS : public ivButtonState {
|
class ivPrintBS : public ivButtonState {
|
};
|
};
|
|
|
void f ()
|
void f ()
|
{
|
{
|
ivPrintBS a, b;
|
ivPrintBS a, b;
|
a = b;
|
a = b;
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.