[clangd] Re-land "support outgoing calls in call hierarchy" (#117673)
[llvm-project.git] / flang / test / Semantics / OpenMP / defaultmap-clause-v45.f90
blob904fc306a31f4a994ba941aaae0dc2caef8edcdc
1 !RUN: %python %S/../test_errors.py %s %flang -fopenmp -fopenmp-version=45 -Werror
3 subroutine f00
4 !WARNING: 'variable-category' modifier is required
5 !$omp target defaultmap(tofrom)
6 !$omp end target
7 end
9 subroutine f01
10 !WARNING: AGGREGATE is not allowed in OpenMP v4.5, try -fopenmp-version=50
11 !$omp target defaultmap(tofrom:aggregate)
12 !$omp end target
13 end
15 subroutine f02
16 !WARNING: FROM is not allowed in OpenMP v4.5, try -fopenmp-version=50
17 !$omp target defaultmap(from:scalar)
18 !$omp end target
19 end
21 subroutine f03
22 !WARNING: ALL is not allowed in OpenMP v4.5, try -fopenmp-version=52
23 !$omp target defaultmap(tofrom:all)
24 !$omp end target
25 end
27 subroutine f04
28 !WARNING: FROM is not allowed in OpenMP v4.5, try -fopenmp-version=50
29 !WARNING: POINTER is not allowed in OpenMP v4.5, try -fopenmp-version=50
30 !$omp target defaultmap(from:pointer)
31 !$omp end target
32 end