aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr53070.c
blob: 534ac34141f4f94181d8c736c604e2c82e293a42 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-options "-ffast-math -ftree-loop-if-convert -fno-tree-loop-im" } */
int
foo (int c)
{
  int t = 0, i = 0;
  for (; i < 100; i++)
    t += c ? c : 1;
  return t;
}