blob: ab78626dd3b708605818d5bd6e019e54710c6dc1 [file] [log] [blame]
! { 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