blob: 1862ac8b09d9b8037a902689d4a62acd369a445a [file] [log] [blame]
// PR target/104213
// { dg-do compile }
// { dg-options "-Wuse-after-free" }
// FIXME: We should not output the warning twice.
struct A
{
virtual ~A ();
void f ();
};
A::~A ()
{
operator delete (this);
f (); // { dg-warning "used after" }
} // { dg-warning "used after" }