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

15 lines
255 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
integer :: i
!$omp parallel num_threads(32)
!$omp do
do i = 0, 999
!$omp cancel do
2018-12-28 15:30:48 +00:00
if (omp_get_cancellation ()) STOP 1
2014-09-21 17:33:12 +00:00
enddo
!$omp endparallel
end