2018-06-09 Steven G. Kargl <kargl@gcc.gnu.org>
[official-gcc.git] / libgomp / testsuite / libgomp.fortran / cancel-sections-1.f90
blob7e1d4b37534f87e386c959b276967491b6b7edd7
1 ! { dg-do run }
2 ! { dg-set-target-env-var OMP_CANCELLATION "true" }
4 use omp_lib
6 if (omp_get_cancellation ()) then
7 !$omp parallel num_threads(32)
8 !$omp sections
9 !$omp cancel sections
10 STOP 1
11 !$omp section
12 !$omp cancel sections
13 STOP 2
14 !$omp section
15 !$omp cancel sections
16 STOP 3
17 !$omp section
18 !$omp cancel sections
19 STOP 4
20 !$omp end sections
21 !$omp end parallel
22 end if
23 end