1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/* PR tree-optimization/42719 */ /* { dg-do compile } */ /* { dg-options "-O2 -ftracer -fcompare-debug" } */ /* { dg-xfail-if "" { powerpc-ibm-aix* } } */ int *v; void foo (int a) { int i, j; for (j = i = a; i != -1; j = i, i = v[i]) ; v[j] = v[a]; }