1 /* PR lto/93384 */
2 /* { dg-lto-do link } */
3 /* { dg-require-effective-target fpic } */
4 /* { dg-require-effective-target shared } */
5 /* { dg-lto-options { { -O2 -flto -ffat-lto-objects -fpic -fno-semantic-interposition } } } */
6 /* { dg-extra-ld-options { -shared -flto-partition=none } } */
7
8 void bar (void);
9 __attribute__((noipa)) void quux (int x) { if (x == 5) bar (); }
10 __attribute__((noipa, noreturn)) void foo (void) { while (1) ; }
11 __attribute__((noinline)) void bar (void) { asm (""); quux (7); foo (); }
12 void baz (int x) { if (x) bar (); }