Retro68/gcc/libgomp/testsuite/libgomp.fortran/cancel-sections-1.f90

24 lines
422 B
Fortran
Raw Normal View History

2014-09-21 17:33:12 +00:00
! { 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
2018-12-28 15:30:48 +00:00
STOP 1
2014-09-21 17:33:12 +00:00
!$omp section
!$omp cancel sections
2018-12-28 15:30:48 +00:00
STOP 2
2014-09-21 17:33:12 +00:00
!$omp section
!$omp cancel sections
2018-12-28 15:30:48 +00:00
STOP 3
2014-09-21 17:33:12 +00:00
!$omp section
!$omp cancel sections
2018-12-28 15:30:48 +00:00
STOP 4
2014-09-21 17:33:12 +00:00
!$omp end sections
!$omp end parallel
end if
end