1 /* { dg-do run { target tls_runtime } } */
2 /* { dg-set-target-env-var OMP_CANCELLATION "true" } */
8 #pragma omp threadprivate (t)
19 #pragma omp cancel taskgroup
20 if (omp_get_cancellation ())
24 #pragma omp for reduction (task, +: a)
25 for (i
= 0; i
< 64; ++i
)
28 #pragma omp task in_reduction (+: a)
30 volatile int zero
= 0;
32 if (omp_get_cancellation ())
40 if (omp_get_cancellation ())
49 #pragma omp for reduction (task, +: a)
50 for (i
= 0; i
< 64; ++i
)
54 #pragma omp task in_reduction (+: a)
56 volatile int zero
= 0;
58 #pragma omp cancel taskgroup
59 if (omp_get_cancellation ())
66 #pragma omp task firstprivate (p)
68 if (p
&& omp_get_cancellation ())