1 // { dg-do compile }
2 // { dg-options "-O -funroll-loops -fcompare-debug" }
3 // { dg-xfail-if "" { powerpc-ibm-aix* } }
4 
Remap(int n,int * src,int * dst,int * map)5 void Remap(int n, int *src, int *dst, int *map)
6 {
7   do {
8     int i = *src;
9     if (i != 0) *dst = map[i];
10   } while (--n != 0);
11 }
12