blob: b6786eb4ea497e3df805f14cebcbc5f1f03de60f [file] [log] [blame]
// PR c++/58678
// { dg-options "-O3 -flto -shared -fPIC -Wl,--no-undefined" }
// { dg-do link { target { { gld && fpic } && shared } } }
// { dg-require-effective-target lto }
struct A {
virtual ~A();
};
struct B : A {
virtual int m_fn1();
};
void fn1(B* b) {
delete b;
}
int main() {}