URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.robertl/] [eb70.C] - Rev 414
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// conversion ops should be treated as coming from the most derived class
// for overload resolution. See [over.match.funcs].
class X {
public:
operator bool() const;
};
class Y : public X {
private:
operator void*() const;
};
int f(Y const& y) {
return bool(y);
}
Go to most recent revision | Compare with Previous | Blame | View Log