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++.mike/] [p418.C] - Rev 516
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
}