[clangd] Re-land "support outgoing calls in call hierarchy" (#117673)
[llvm-project.git] / flang / test / Semantics / OpenMP / device-clause01.f90
blob6f95d162790d5755be1cbf457113f4d65ad7f704
1 ! RUN: %python %S/../test_errors.py %s %flang -fopenmp
2 ! OpenMP Version 5.2
3 ! 13.2 Device clause
5 subroutine foo
7 integer :: a
9 !$omp target device(ancestor:0)
10 !$omp end target
11 !$omp target device(device_num:0)
12 !$omp end target
14 !ERROR: The ANCESTOR device-modifier must not appear on the DEVICE clause on any directive other than the TARGET construct. Found on TARGET DATA construct.
15 !$omp target data device(ancestor:0) map(tofrom:a)
16 !$omp end target data
17 !$omp target data device(device_num:0) map(tofrom:a)
18 !$omp end target data
21 !ERROR: The ANCESTOR device-modifier must not appear on the DEVICE clause on any directive other than the TARGET construct. Found on TARGET ENTER DATA construct.
22 !$omp target enter data device(ancestor:0) map(to:a)
23 !$omp target exit data map(from:a)
24 !$omp target enter data device(device_num:0) map(to:a)
25 !$omp target exit data map(from:a)
27 !ERROR: The ANCESTOR device-modifier must not appear on the DEVICE clause on any directive other than the TARGET construct. Found on TARGET UPDATE construct.
28 !$omp target update device(ancestor:0) to(a)
29 !$omp target update device(device_num:0) to(a)
31 end subroutine foo