URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [overload35.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do assemble }
// PRMS Id: 9647
class castBug
{
public:
operator int *();
operator const int *() const;
};
class castBug2
{
public:
operator const int *() const;
};
void voidfn(void *);
void test()
{
castBug b;
castBug2 b2;
voidfn(b); // { dg-bogus "" }
voidfn(b2); // { dg-error "" } discarding const
}