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