Debian Codegraph @

gcc/testsuite/c-c++-common/gomp/taskloop-reduction-1.c

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 }