| 1 |
! In OpenMP 5.2 permits tofrom for enter/exit data |
| 2 |
! in the FE, it is already converted to 'to' and 'from', respectively. |
| 3 |
module m |
| 4 |
integer :: y, z |
| 5 |
contains |
| 6 |
subroutine copyin |
| 7 |
!$omp target enter data map(from: y) ! { dg-error "TARGET ENTER DATA with map-type other than TO, TOFROM or ALLOC on MAP clause" } |
| 8 |
!$omp target enter data map(always, from: z) ! { dg-error "TARGET ENTER DATA with map-type other than TO, TOFROM or ALLOC on MAP clause" } |
| 9 |
end |
| 10 |
subroutine copyout |
| 11 |
!$omp target exit data map(to: y) ! { dg-error "TARGET EXIT DATA with map-type other than FROM, TOFROM, RELEASE, or DELETE on MAP clause" } |
| 12 |
!$omp target exit data map(always, to: z) ! { dg-error "TARGET EXIT DATA with map-type other than FROM, TOFROM, RELEASE, or DELETE on MAP clause" } |
| 13 |
end |
| 14 |
end |