Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
c-c++-common
/
gomp
/
pr61486-1.c
blob: dbd621f0dba777f8233b40bea93a2813aa737015 [
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
)
map
(
a
[:
10
])
for
(
i
=
0
;
i
<
10
;
i
++)
a
[
i
]
=
j
;
return
i
;
}