mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-11 19:49:32 +00:00
20 lines
408 B
Fortran
20 lines
408 B
Fortran
! { dg-do run }
|
|
|
|
program example
|
|
integer :: x
|
|
x = 1
|
|
!$omp parallel
|
|
!$omp single
|
|
!$omp task shared(x) depend(out: x)
|
|
x = 2
|
|
!$omp end task
|
|
!$omp task shared(x) depend(in: x)
|
|
if (x .ne. 2) STOP 1
|
|
!$omp end task
|
|
!$omp task shared(x) depend(in: x)
|
|
if (x .ne. 2) STOP 2
|
|
!$omp end task
|
|
!$omp end single
|
|
!$omp end parallel
|
|
end program
|