Add -mcpu=power11 support.
[official-gcc.git] / gcc / testsuite / g++.dg / lto / pr87906_0.C
blob623c29ca007aed526744c3761da9ad9aa7112e4d
1 // { dg-lto-do link }
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" }
8 namespace com {
9 namespace moon {
10 namespace star {}
11 } // namespace moon
12 } // namespace com
13 namespace a = com::moon::star;
14 namespace com {
15 namespace moon {
16 namespace star {
17 namespace uno {
18 class a {
19 public:
20   ~a();
23 class b {
24 public:
25   ~b();
26   a c;
28 class c {
29   b e;
31 class RuntimeException : b {};
32 } // namespace uno
33 } // namespace star
34 } // namespace moon
35 } // namespace com
36 template <typename> void d(int) { throw a::uno::RuntimeException(); }
37 int f;
38 void g() { d<a::uno::b>(f); }