URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [virtual2.C] - Rev 772
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
struct A {
virtual A* f () { return this; }
};
struct B: public A {
virtual B* f () { return 0; }
};
int main ()
{
A* ap = new B;
return (ap->f () != 0);
}
Go to most recent revision | Compare with Previous | Blame | View Log