blob: 4f7b57409aaf1c5ae06c21094ca05d6486469024 [file] [log] [blame]
void
foo (int *a)
{
int i, r = 0, s = 0;
#pragma omp taskgroup task_reduction(+:r)
#pragma omp parallel master taskloop in_reduction(+:r) /* { dg-error "'in_reduction' is not valid for '#pragma omp parallel master taskloop'" } */
for (i = 0; i < 64; i++)
r += a[i];
#pragma omp taskgroup task_reduction(+:s)
#pragma omp parallel master taskloop simd in_reduction(+:s) /* { dg-error "'in_reduction' is not valid for '#pragma omp parallel master taskloop simd'" } */
for (i = 0; i < 64; i++)
s += a[i];
}