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 }
|
// conversion ops should be treated as coming from the most derived class
|
// conversion ops should be treated as coming from the most derived class
|
// for overload resolution. See [over.match.funcs].
|
// for overload resolution. See [over.match.funcs].
|
|
|
class X {
|
class X {
|
public:
|
public:
|
operator bool() const;
|
operator bool() const;
|
};
|
};
|
|
|
class Y : public X {
|
class Y : public X {
|
private:
|
private:
|
operator void*() const;
|
operator void*() const;
|
};
|
};
|
|
|
int f(Y const& y) {
|
int f(Y const& y) {
|
return bool(y);
|
return bool(y);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.