OSDN Git Service

For Greta Yorsh.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / tree-ssa / ifc-6.c
1 /* { dg-do compile } */
2 /* { dg-options "-c -O2 -ftree-vectorize" { target *-*-* } } */
3
4 static int x;
5 foo (int n, int *A)
6 {
7   int i;
8   for (i = 0; i < n; i++)
9     {
10       if (A[i])
11         x = 2;
12       if (A[i + 1])
13         x = 1;
14     }
15 }