PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / pr50133.c
blob2c0f490cfbe8171ebd0e2a163e17e83b9a1114b2
1 /* PR tree-optimization/50133 */
2 /* { dg-do compile } */
3 /* { dg-options "-O -ftree-vectorize -fno-tree-loop-im" } */
5 extern int A[], B[];
7 void
8 foo (int z)
10 int j, i;
11 for (j = 0; j < 32; j++)
13 int a = A[0];
14 for (i = 0; i < 16; i++)
15 a = A[i] ? a : z;
16 B[j] = a;