aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr95897.c
blob: a17b72dd040dc0507ad6fa30905d168c84730b59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */

double foo (double x, int n)
{
  double s = 0.;
  for (int i = 0; i < n; ++i)
    {
      s += x;
      s += x;
      s += x;
    }
  return s;
}