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
2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
[official-gcc.git]
/
libgomp
/
testsuite
/
libgomp.fortran
/
examples-4
/
task_dep-3.f90
blob
34cd2c749708b77dd4cf1ae79e37dec7d427b9df
1
! { dg-do run }
2
3
program
example
4
integer
::
x
5
x
=
0
6
!$omp parallel
7
!$omp single
8
!$omp task shared(x) depend(out: x)
9
x
=
1
10
!$omp end task
11
!$omp task shared(x) depend(out: x)
12
x
=
2
13
!$omp end task
14
!$omp taskwait
15
if
((
x
.
ne
.
1
) .
and
. (
x
.
ne
.
2
))
STOP
1
16
!$omp end single
17
!$omp end parallel
18
end program