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/] [p418.C] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// prms-id: 418
class Base {
public:
int foo;
};
class Derived : public Base {
public:
int bar;
};
void func(Base&); // { dg-error "" } referenced by error below
void func2(const Derived& d) {
func(d); // { dg-error "" } should be error because of const
}
Go to most recent revision | Compare with Previous | Blame | View Log