| 1 |
! { dg-do compile } |
| 2 |
implicit none |
| 3 |
integer ::x,z |
| 4 |
x = 42 |
| 5 |
print '(*(z16:" "))', loc(x) |
| 6 |
!$omp target map(x, z) |
| 7 |
block |
| 8 |
integer :: y |
| 9 |
x = 123 |
| 10 |
y = 99 |
| 11 |
!$omp target device(ancestor:1) map(always,tofrom:x) map(y) ! { dg-error "'ancestor' device modifier not preceded by 'requires' directive with 'reverse_offload' clause" } |
| 12 |
print '(*(z16:" "))', loc(x), loc(y) |
| 13 |
print * ,x, y |
| 14 |
x = -x |
| 15 |
y = -y |
| 16 |
!$omp end target ! { dg-error "Unexpected ..OMP END TARGET statement" } |
| 17 |
z = y |
| 18 |
end block |
| 19 |
print * ,x !, z |
| 20 |
end |
| 21 |
|