Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
c-c++-common
/
gomp
/
taskloop-reduction-1.c
blob: 0df073fde74f1ccc8539a5c1134c15ac9cd84517 [
file
] [
log
] [
blame
]
int
foo
(
int
*
a
)
{
int
x
=
0
;
#pragma
omp taskloop reduction
(+:
x
)
nogroup
/* { dg-error "'nogroup' clause must not be used together with 'reduction' clause" } */
for
(
int
i
=
0
;
i
<
64
;
i
++)
x
+=
a
[
i
];
#pragma
omp taskwait
return
x
;
}