2017-12-05 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr51865.c
blob9b4595cce03fb970a5c1bd52738561388c996217
1 /* PR tree-optimization/51865 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fipa-pta" } */
5 void fn (const char *, const char *) __attribute__ ((__noreturn__));
6 int var;
8 inline void
9 foo (void)
11 if (__builtin_expect (var != 0, 0))
12 fn ("a", "b");
15 void
16 bar (void)
18 foo ();
21 void
22 baz (void)
24 foo ();