blob: 7e1d4b37534f87e386c959b276967491b6b7edd7 [file] [log] [blame]
! { dg-do run }
! { dg-set-target-env-var OMP_CANCELLATION "true" }
use omp_lib
if (omp_get_cancellation ()) then
!$omp parallel num_threads(32)
!$omp sections
!$omp cancel sections
STOP 1
!$omp section
!$omp cancel sections
STOP 2
!$omp section
!$omp cancel sections
STOP 3
!$omp section
!$omp cancel sections
STOP 4
!$omp end sections
!$omp end parallel
end if
end