[clangd] Re-land "support outgoing calls in call hierarchy" (#117673)
[llvm-project.git] / flang / test / Semantics / OpenMP / depend03.f90
blobe0eb683d252efdb4f6a35ac6bebad459c36323e2
1 ! RUN: %python %S/../test_errors.py %s %flang -fopenmp
2 ! OpenMP Version 4.5
3 ! 2.13.9 Depend Clause
4 ! Coarrays are not supported in depend clause
6 program omp_depend_coarray
7 integer :: a(3)[*], b(3) , k
9 a(:) = this_image()
10 b(:) = a(:)[1]
11 k = 10
13 !$omp parallel
14 !$omp single
15 !ERROR: Coarrays are not supported in DEPEND clause
16 !$omp task shared(b) depend(out: a(:)[1])
17 b = a + k
18 !$omp end task
19 !$omp end single
20 !$omp end parallel
22 print *, a, b
24 end program omp_depend_coarray