Debian Codegraph @

gcc/testsuite/g++.dg/other/pr42685.C

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