URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [access16.C] - Rev 700
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// Bug: g++ uses the same binfo for the a subobject of c and the a subobject
// of b, so basetype_paths get bashed improperly.
class a {
protected:
virtual void foo() { } // { dg-bogus "" }
};
class b : public virtual a {};
class c : public b {
public:
void bar() { b::foo(); } // { dg-bogus "" }
};
int main() {
c test;
test.bar();
}
Go to most recent revision | Compare with Previous | Blame | View Log