diff options
Diffstat (limited to 'gcc-4.9/libgomp/testsuite/libgomp.fortran/cancel-sections-1.f90')
-rw-r--r-- | gcc-4.9/libgomp/testsuite/libgomp.fortran/cancel-sections-1.f90 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gcc-4.9/libgomp/testsuite/libgomp.fortran/cancel-sections-1.f90 b/gcc-4.9/libgomp/testsuite/libgomp.fortran/cancel-sections-1.f90 new file mode 100644 index 000000000..9ba8af846 --- /dev/null +++ b/gcc-4.9/libgomp/testsuite/libgomp.fortran/cancel-sections-1.f90 @@ -0,0 +1,23 @@ +! { 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 |