mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-03 10:49:58 +00:00
15 lines
259 B
Fortran
15 lines
259 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 ()) call abort
|
|
enddo
|
|
!$omp endparallel
|
|
end
|