// RUN: %libomp-compile-and-run #include #include int main() { enum {ITERS = 500}; enum {SIZE = 5}; int err = 0; #pragma omp parallel num_threads(2) reduction(+:err) { int r = 0; int i; #pragma omp taskloop grainsize(SIZE) shared(r) nogroup for(i=0; i