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 }
|
// GROUPS passed operators
|
// GROUPS passed operators
|
// opr-eq file
|
// opr-eq file
|
// Message-Id:
|
// Message-Id:
|
// From: rowlands@hc.ti.com (Jon Rowlands)
|
// From: rowlands@hc.ti.com (Jon Rowlands)
|
// Subject: g++ 2.4.5: assignment operator in base class
|
// Subject: g++ 2.4.5: assignment operator in base class
|
// Date: Mon, 30 Aug 1993 00:54:29 GMT
|
// Date: Mon, 30 Aug 1993 00:54:29 GMT
|
|
|
class B {
|
class B {
|
public:
|
public:
|
B & operator = (B); // delete this line and problem goes away
|
B & operator = (B); // delete this line and problem goes away
|
};
|
};
|
|
|
class D : public B {
|
class D : public B {
|
public:
|
public:
|
D();
|
D();
|
D(int);
|
D(int);
|
D(B);
|
D(B);
|
};
|
};
|
|
|
int
|
int
|
main() {
|
main() {
|
B b;
|
B b;
|
D d;
|
D d;
|
|
|
d = d;
|
d = d;
|
|
|
d = 0; // t.cxx:20: assignment not defined for type `D'
|
d = 0; // t.cxx:20: assignment not defined for type `D'
|
d = D(0);
|
d = D(0);
|
|
|
d = b; // t.cxx:23: assignment not defined for type `D'
|
d = b; // t.cxx:23: assignment not defined for type `D'
|
d = D(b);
|
d = D(b);
|
|
|
return(0);
|
return(0);
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.