1 // RUN: %libomp-compile-and-run
10 res
= omp_in_explicit_task();
12 printf("error: omp_in_explicit_task: serial1 returned %d\n", res
);
15 #pragma omp parallel num_threads(2)
17 int r
= omp_in_explicit_task();
19 printf("error: omp_in_explicit_task: par #%d returned %d\n",
20 omp_get_thread_num(), r
);
25 int r
= omp_in_explicit_task();
27 printf("error: omp_in_explicit_task: task1 #%d returned %d\n",
28 omp_get_thread_num(), r
);
34 int r
= omp_in_explicit_task();
36 printf("error: omp_in_explicit_task: task2 #%d returned %d\n",
37 omp_get_thread_num(), r
);
42 res
= omp_in_explicit_task();
44 printf("error: omp_in_explicit_task: serial2 returned %d\n", res
);