URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [p438.C] - Rev 154
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// prms-id: 438
class D;
class C
{
public:
void test() const;
};
class D
{
public:
void a(C& b); // { dg-error "" } referenced below
};
void C::test() const
{
D d;
d.a(*this); // { dg-error "" } *this is const, so should get error
}
Go to most recent revision | Compare with Previous | Blame | View Log