2 /* { dg-set-target-env-var OMP_CANCELLATION "true" } */
16 #pragma omp master taskloop num_tasks (25) firstprivate (c)
17 for (i
= 0; i
< 50; i
++)
19 if (c
&& omp_get_cancellation ())
21 #pragma omp cancellation point taskgroup
25 #pragma omp cancel taskgroup if (i > 10)
26 if (i
> 10 && omp_get_cancellation ())