| 1 |
! { dg-additional-options "-fdump-tree-original" } |
| 2 |
! |
| 3 |
! In OpenMP 5.2 permits tofrom for enter/exit data |
| 4 |
! in the FE, it is already converted to 'to' and 'from', respectively. |
| 5 |
module m |
| 6 |
integer :: x, y, z |
| 7 |
contains |
| 8 |
subroutine copyin |
| 9 |
!$omp target enter data map(x) map(tofrom: y) map(always, tofrom: z) |
| 10 |
end |
| 11 |
subroutine copyout |
| 12 |
!$omp target exit data map(x) map(tofrom: y) map(always, tofrom: z) |
| 13 |
end |
| 14 |
end |
| 15 |
|
| 16 |
! { dg-final { scan-tree-dump-times "#pragma omp target enter data map\\(to:x\\) map\\(to:y\\) map\\(always,to:z\\)" 1 "original" } } |
| 17 |
! { dg-final { scan-tree-dump-times "#pragma omp target exit data map\\(from:x\\) map\\(from:y\\) map\\(always,from:z\\)" 1 "original" } } |