summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/graphite/pr42205-2.c
blob: 595cedb90a56c10a7c073f253154e2be4602a5f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-options "-O1 -funsafe-math-optimizations -floop-interchange" } */

double f(double x)
{
  double y = 0.0;
  int i;
  for (i = 0; i < 8; i++) {
    y += x * i;
  }
  return y;
}