Go to the documentation of this file.
12int main(
int argc,
char **argv) {
16 #pragma omp sections reduction(task, +: a) reduction(task, *: b)
20 #pragma omp task in_reduction(+: a) in_reduction(*: b)
28 #pragma omp task in_reduction(+: a) in_reduction(*: b)
36 #pragma omp task in_reduction(+: a) in_reduction(*: b)
44 #pragma omp task in_reduction(+: a) in_reduction(*: b)
52 #pragma omp task in_reduction(+: a) in_reduction(*: b)
62 fprintf(stderr,
"error: a != 15. Instead a = %d\n",
a);
66 fprintf(stderr,
"error: b != 120. Instead b = %d\n",
b);