URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// Bug: Scoped method calls don't propagate the constness of `this'.
|
// Bug: Scoped method calls don't propagate the constness of `this'.
|
// PRMS Id: 4181 (second testcase)
|
// PRMS Id: 4181 (second testcase)
|
|
|
class D;
|
class D;
|
|
|
class Bptr
|
class Bptr
|
{
|
{
|
public:
|
public:
|
Bptr& operator=(D*);
|
Bptr& operator=(D*);
|
const Bptr& operator=(const D*) const;
|
const Bptr& operator=(const D*) const;
|
};
|
};
|
|
|
class Dptr : public Bptr
|
class Dptr : public Bptr
|
{
|
{
|
public:
|
public:
|
const Dptr& operator=(const D* rep) const
|
const Dptr& operator=(const D* rep) const
|
{
|
{
|
Bptr::operator=(rep);
|
Bptr::operator=(rep);
|
return *this;
|
return *this;
|
}
|
}
|
};
|
};
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.