URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [overload35.C] - Rev 305
Go to most recent revision | 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
}
Go to most recent revision | Compare with Previous | Blame | View Log