Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/libgomp/testsuite/libgomp.fortran/cancel-do-1.f90
2023-03-06 14:48:14 +01:00

14 lines
255 B
Fortran

! { 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
if (omp_get_cancellation ()) stop 1
enddo
!$omp endparallel
end