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