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;
}