blob: a2968370283080d91a06ab3692410b8104d9a666 [file] [log] [blame]
/* PR tree-optimization/85156 */
int x, y;
__attribute__((noipa)) int
foo (int z)
{
if (__builtin_expect (x ? y != 0 : 0, z++))
return 7;
return z;
}
int
main ()
{
x = 1;
asm volatile ("" : "+m" (x), "+m" (y));
if (foo (10) != 11)
__builtin_abort ();
return 0;
}