summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr24820.c
blob: 0482ca3211805a665fdb887d2cffcd2faf3ef119 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-O2 -ffast-math" } */

double floor (double);
double bar (double sum)
{
  int i;
  for (i = 0; i < 256; i++)
   sum += floor (0.5 + (i - 128));
  return sum;
}