1 /* PR tree-optimization/51865 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-O2 -fipa-pta" } */ 4 5 void fn (const char *, const char *) __attribute__ ((__noreturn__)); 6 int var; 7 8 inline void foo(void)9foo (void) 10 { 11 if (__builtin_expect (var != 0, 0)) 12 fn ("a", "b"); 13 }; 14 15 void bar(void)16bar (void) 17 { 18 foo (); 19 }; 20 21 void baz(void)22baz (void) 23 { 24 foo (); 25 }; 26