Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
c-c++-common
/
gomp
/
scan-5.c
blob: 8241621d35990709b3de155b4943146529a55848 [
file
] [
log
] [
blame
]
int
foo
(
int
*
a
,
int
*
b
)
{
int
r
=
0
;
#pragma
omp parallel
for
reduction
(
inscan
,
+:
r
)
default
(
none
)
firstprivate
(
a
,
b
)
for
(
int
i
=
0
;
i
<
64
;
i
++)
{
r
+=
a
[
i
];
#pragma
omp scan inclusive
(
r
)
b
[
i
]
=
r
;
}
return
r
;
}