Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/lto/pr87906_0.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
line wrap: on
line source
// { dg-lto-do link } // { dg-require-effective-target fpic } // { dg-require-effective-target shared } // { dg-lto-options { { -O -fPIC -flto } } } // { dg-extra-ld-options "-shared -nostdlib" } namespace com { namespace moon { namespace star {} } // namespace moon } // namespace com namespace a = com::moon::star; namespace com { namespace moon { namespace star { namespace uno { class a { public: ~a(); }; class b { public: ~b(); a c; }; class c { b e; }; class RuntimeException : b {}; } // namespace uno } // namespace star } // namespace moon } // namespace com template <typename> void d(int) { throw a::uno::RuntimeException(); } int f; void g() { d<a::uno::b>(f); }