OSDN Git Service

2012-04-13 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / torture / pr52969.c
1 /* { dg-do compile } */
2 /* { dg-options "-ftree-loop-if-convert-stores" } */
3
4 int a, b;
5 float xsum[100];
6 void foo (float *cluster)
7 {
8   int j;
9   for (; a ; ++j) {
10       xsum[j] = cluster[j];
11       if (xsum[j] > 0)
12         xsum[j] = 0;
13   }
14   if (xsum[0])
15     b = 0;
16 }