gcc/testsuite/g++.dg/lto/20081109-1_0.C
raw| 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-lto-options {{-fPIC -flto -flto-partition=1to1}} } |
| 5 | // { dg-extra-ld-options "-fPIC -flto -flto-partition=1to1 -r -fno-exceptions -flinker-output=nolto-rel" } |
| 6 | void func(); class Foo { }; |
| 7 | void bar() { try { func(); } catch (Foo) { } }; |