summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr58340.c
blob: ca3ccda0a472a176e70b273fc1d36d513956db23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
int a, b, c, d;

int foo (int x, int y)
{
  return y == 0 ? x : 1 % y;
}

int main ()
{
  c = 0 || a;

  for (;;)
    b = foo (d, c) && 1;

  return 0;
}