repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
other
/
pr42685.C
blob
b8b1ad63b1b46eb6c03fa549918732dd55e1e31e
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
}