summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr52969.c
blob: 05331d93f34e9cba4f23a2c494ed1396af837b28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-ftree-loop-if-convert-stores" } */

int a, b;
float xsum[100];
void foo (float *cluster)
{
  int j;
  for (; a ; ++j) {
      xsum[j] = cluster[j];
      if (xsum[j] > 0)
	xsum[j] = 0;
  }
  if (xsum[0])
    b = 0;
}