Debian Codegraph @

gcc/testsuite/gfortran.dg/gomp/metadirective-13.f90

raw
1 ! { dg-do compile }
2
3 subroutine foo
4 implicit none
5 external f
6
7 !$omp dispatch
8 call f()
9 !$omp dispatch
10 call f()
11 !$omp end dispatch
12
13 !$omp begin metadirective when(construct={parallel} : nothing) otherwise(dispatch)
14 call f()
15 !$omp end metadirective
16 end
17
18 subroutine bar
19 implicit none
20 integer :: x
21 !$omp atomic update
22 x = x + 1
23 !$omp atomic update
24 x = x + 1
25 !$omp end atomic
26
27 !$omp begin metadirective when(construct={parallel} : nothing) otherwise(atomic update)
28 x = x + 1
29 !$omp end metadirective
30 end