blob: 65d5fcdf3e2bd5e99dad4406ed561f24e8942029 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// 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() {}
|