2 // { dg-require-effective-target fpic }
3 // { dg-lto-options {{-fPIC -flto -flto-partition=1to1}} }
4 // { dg-extra-ld-options "-fPIC -flto -flto-partition=1to1 -r -nostdlib -fno-exceptions" }
5 void func(); class Foo { };
6 void bar() { try { func(); } catch (Foo) { } };