view gcc/testsuite/gcc.dg/graphite/pr46924.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { dg-options "-O -fgraphite-identity -ffast-math -fno-tree-loop-im" } */

struct S
{
  int n;
  float *a;
};

float foo (struct S *s)
{
  float f = 0, g=0;
  int i;
  for (i = 0; i < s->n; i++)
    f += s->a[i];
  for (i = 0; i < s->n; i++)
    ;
  return f;
}