☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
c-c++-common
/
gomp
/
taskloop-reduction-1.c
☽
☼
gcc/testsuite/c-c++-common/gomp/taskloop-reduction-1.c
code
plain
raw
1
int
2
foo (int *a)
3
{
4
int x = 0;
5
#pragma omp taskloop reduction (+:x) nogroup /* { dg-error "'nogroup' clause must not be used together with 'reduction' clause" } */
6
for (int i = 0; i < 64; i++)
7
x += a[i];
8
#pragma omp taskwait
9
return x;
10
}