mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-12 11:29:30 +00:00
24 lines
438 B
Fortran
24 lines
438 B
Fortran
! { 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
|
|
call abort
|
|
!$omp section
|
|
!$omp cancel sections
|
|
call abort
|
|
!$omp section
|
|
!$omp cancel sections
|
|
call abort
|
|
!$omp section
|
|
!$omp cancel sections
|
|
call abort
|
|
!$omp end sections
|
|
!$omp end parallel
|
|
end if
|
|
end
|