26 lines
323 B
C
26 lines
323 B
C
/* PR tree-optimization/51865 */
|
|
/* { dg-do compile } */
|
|
/* { dg-options "-O2 -fipa-pta" } */
|
|
|
|
void fn (const char *, const char *) __attribute__ ((__noreturn__));
|
|
int var;
|
|
|
|
inline void
|
|
foo (void)
|
|
{
|
|
if (__builtin_expect (var != 0, 0))
|
|
fn ("a", "b");
|
|
};
|
|
|
|
void
|
|
bar (void)
|
|
{
|
|
foo ();
|
|
};
|
|
|
|
void
|
|
baz (void)
|
|
{
|
|
foo ();
|
|
};
|