summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr42215.c
blob: e5a75bd3055caa9cf39d4da2ee3a65a6ec0878e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-O2 -ftree-loop-distribution" } */

extern int A[];
extern int B[];

void f(int i)
{
   while (i-- > 0) {
     A[i] = 0;
     B[i] = 0;
   }
}