Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/ipa/devirt-28a.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// 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() {}