2018-04-09 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr42719.c
bloba44b83562f369b2126813141ad286cbcceba83e7
1 /* PR tree-optimization/42719 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -ftracer -fcompare-debug" } */
4 /* { dg-xfail-if "" { powerpc-ibm-aix* } } */
6 int *v;
8 void
9 foo (int a)
11 int i, j;
12 for (j = i = a; i != -1; j = i, i = v[i])
14 v[j] = v[a];