Retro68/gcc/libgomp/testsuite/libgomp.fortran/examples-4/task_dep-1.f90
2018-12-28 16:30:48 +01:00

17 lines
316 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 end single
!$omp end parallel
end program