view libgomp/testsuite/libgomp.fortran/cancel-sections-1.f90 @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 1830386684a0
children
line wrap: on
line source

! { 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
	  stop 1
	!$omp section
	  !$omp cancel sections
	  stop 2
	!$omp section
	  !$omp cancel sections
	  stop 3
	!$omp section
	  !$omp cancel sections
	  stop 4
      !$omp end sections
    !$omp end parallel
  end if
end