Sign in
chromium
/
chromiumos
/
third_party
/
gcc
/
refs/heads/factory-ryu-6486.B
/
.
/
gcc
/
testsuite
/
c-c++-common
/
gomp
/
pr61486-1.c
blob: 9ada58c8ccfd157a10438dd740b215ba4179cd1e [
file
] [
log
] [
blame
]
/* PR middle-end/61486 */
/* { dg-do compile } */
/* { dg-options "-fopenmp" } */
int
foo
(
int
*
a
)
{
int
i
,
j
=
0
;
#pragma
omp target teams distribute simd linear
(
i
,
j
)
map
(
a
[:
10
])
for
(
i
=
0
;
i
<
10
;
i
++)
a
[
i
]
=
j
++;
return
i
+
j
;
}