URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [p4511.C] - Rev 414
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
// prms-id: 4511
int bad;
class A {
public:
virtual void dummy (){}
};
class B {
public:
virtual void f(void) = 0;
};
class C : public A, public B {
public:
void f(void) { bad=1; }
};
class D : public C {
public:
void f(void) { }
};
class E : public D { };
int main() {
E e;
e.f();
E * ep = &e;
ep->f();
return bad;
}
Go to most recent revision | Compare with Previous | Blame | View Log