blob: a12dbe3fd09ecb6252032a9ada0e78c637d40355 [file] [log] [blame]
// { 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;
}