repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Simplify comparison of attrs in IPA ICF.
[official-gcc.git]
/
libgomp
/
testsuite
/
libgomp.fortran
/
cancel-sections-1.f90
blob
7e1d4b37534f87e386c959b276967491b6b7edd7
1
! { dg-do run }
2
! { dg-set-target-env-var OMP_CANCELLATION "true" }
3
4
use
omp_lib
5
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