Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / other / pr42685.C
blobb8b1ad63b1b46eb6c03fa549918732dd55e1e31e
1 // { dg-do compile }
2 // { dg-options "-O -funroll-loops -fcompare-debug" }
4 void Remap(int n, int *src, int *dst, int *map)
6   do {
7     int i = *src;
8     if (i != 0) *dst = map[i];
9   } while (--n != 0);