blob: f43964107c2e492341a2eaee370af2b773e7ab9b [file] [log] [blame]
/* { dg-do run } */
extern "C" void abort ();
struct B *b;
struct B
{
virtual void f () { }
~B() { b->f(); }
};
struct D : public B
{
virtual void f () { abort (); }
};
int main ()
{
D d;
b = &d;
return 0;
}