* gcc.dg/stack-check-5.c: Skip with -fstack-protector.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr46177.c
blob397e31634002218b5e188273ff7dd8278c0fe608
1 /* { dg-do compile } */
2 /* { dg-options "-O -fno-tree-copy-prop -ftree-loop-distribution" } */
4 extern int A[];
5 extern int B[];
7 void
8 foo (int j, int c)
10 int i;
12 if (c)
13 for (i = 0; i < j; i++)
14 A[i] = B[i] = 0;
16 for (i = 0; i < j; i++)
17 A[i] = B[i];