[clangd] Re-land "support outgoing calls in call hierarchy" (#117673)
[llvm-project.git] / flang / test / Semantics / OpenMP / to-clause-v45.f90
blobe4d8967ca14df8782f9ff499b80ac24ad18c6239
1 !RUN: %python %S/../test_errors.py %s %flang -fopenmp -fopenmp-version=45
3 subroutine f00(x)
4 integer :: x(10)
5 !ERROR: Reference to x must be a contiguous object
6 !$omp target update to(x(1:10:2))
7 end
9 subroutine f01(x)
10 integer :: x(10)
11 !WARNING: 'iterator' modifier is not supported in OpenMP v4.5, try -fopenmp-version=51
12 !$omp target update to(iterator(i = 1:5): x(i))
13 end
15 subroutine f02(x)
16 integer :: x(10)
17 !WARNING: 'expectation' modifier is not supported in OpenMP v4.5, try -fopenmp-version=51
18 !WARNING: 'iterator' modifier is not supported in OpenMP v4.5, try -fopenmp-version=51
19 !$omp target update to(present, iterator(i = 1:5): x(i))
20 end
22 subroutine f03(x)
23 integer :: x(10)
24 !WARNING: 'expectation' modifier is not supported in OpenMP v4.5, try -fopenmp-version=51
25 !WARNING: 'expectation' modifier is not supported in OpenMP v4.5, try -fopenmp-version=51
26 !ERROR: 'expectation' modifier cannot occur multiple times
27 !$omp target update to(present, present: x)
28 end
30 subroutine f04
31 !ERROR: 'f04' must be a variable
32 !$omp target update to(f04)
33 end