2 ! { dg-options "-fno-inline -fno-ipa-sra -fno-ipa-cp -fno-ipa-cp-clone" }
3 ! { dg-set-target-env-var OMP_CANCELLATION "true" }
9 call omp_set_dynamic (.false
.)
10 call omp_set_schedule (omp_sched_static
, 1)
11 !$omp parallel num_threads(16) private (i, j)
14 if (omp_get_thread_num ().eq
.1) then
16 !$omp cancellation point parallel
19 !$omp do schedule(runtime)
25 if (omp_get_thread_num ().eq
.0) then
31 subroutine do_some_work
37 endsubroutine do_some_work