[clangd] Re-land "support outgoing calls in call hierarchy" (#117673)
[llvm-project.git] / flang / test / Semantics / OpenMP / target-update01.f90
blob84dc60dcd75f5c14e8cf4efe4cf3ebf5a57a3b43
1 ! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
3 subroutine foo(x)
4 integer :: x
5 !ERROR: At least one motion-clause (TO/FROM) must be specified on TARGET UPDATE construct.
6 !$omp target update
8 !ERROR: At least one motion-clause (TO/FROM) must be specified on TARGET UPDATE construct.
9 !$omp target update nowait
11 !$omp target update to(x) nowait
13 !ERROR: At most one NOWAIT clause can appear on the TARGET UPDATE directive
14 !$omp target update to(x) nowait nowait
16 !ERROR: A list item ('x') can only appear in a TO or FROM clause, but not in both.
17 !BECAUSE: 'x' appears in the TO clause.
18 !BECAUSE: 'x' appears in the FROM clause.
19 !$omp target update to(x) from(x)
21 end subroutine