Add support for ARMv8-R architecture
[official-gcc.git] / libgomp / testsuite / libgomp.fortran / examples-4 / task_dep-2.f90
blob5afd76dbf43f13050ba8ca039e7c2fc6a3438059
1 ! { dg-do run }
3 program example
4 integer :: x
5 x = 1
6 !$omp parallel
7 !$omp single
8 !$omp task shared(x) depend(in: x)
9 if (x .ne. 1) call abort ()
10 !$omp end task
11 !$omp task shared(x) depend(out: x)
12 x = 2
13 !$omp end task
14 !$omp end single
15 !$omp end parallel
16 end program