2 // Explicit { dg-require-effective-target exceptions_enabled } so that dependent tests don't turn UNRESOLVED for '-fno-exceptions'.
3 // { dg-require-effective-target fpic }
4 // { dg-require-effective-target shared }
5 // { dg-lto-options { { -O -fPIC -flto } } }
6 // { dg-extra-ld-options "-shared -nostdlib" }
13 namespace a = com::moon::star;
31 class RuntimeException : b {};
36 template <typename> void d(int) { throw a::uno::RuntimeException(); }
38 void g() { d<a::uno::b>(f); }