1 /* { dg-do compile } */
2 /* { dg-options "-O2 -floop-nest-optimize" } */
3
4 int a, b, d;
5 int **c;
fn1()6 int fn1() {
7 while (a)
8 if (d) {
9 int e = -d;
10 for (; b < e; b++)
11 c[b] = &a;
12 } else {
13 for (; b; b++)
14 c[b] = &b;
15 d = 0;
16 }
17 }
18