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