URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [torture/] [pr47382.C] - Rev 694
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
extern "C" void abort ();
struct A
{
inline ~A ();
virtual void foo () {}
};
struct B : A
{
virtual void foo () { abort(); }
};
static inline void middleman (A *a)
{
a->foo ();
}
inline A::~A ()
{
middleman (this);
}
int main ()
{
B b;
return 0;
}
Go to most recent revision | Compare with Previous | Blame | View Log