(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
graphite/
pr46924.c
       1  /* { dg-options "-O -fgraphite-identity -ffast-math -fno-tree-loop-im" } */
       2  
       3  struct S
       4  {
       5    int n;
       6    float *a;
       7  };
       8  
       9  float foo (struct S *s)
      10  {
      11    float f = 0, g=0;
      12    int i;
      13    for (i = 0; i < s->n; i++)
      14      f += s->a[i];
      15    for (i = 0; i < s->n; i++)
      16      ;
      17    return f;
      18  }