| 1 |
! PR fortran/93463 |
| 2 |
! { dg-do compile { target fopenmp } } |
| 3 |
! { dg-additional-options "-fopenmp" } |
| 4 |
|
| 5 |
program pr93463 |
| 6 |
integer :: i, x, y, z |
| 7 |
!$omp parallel do |
| 8 |
do i = 1, 4 |
| 9 |
!$acc enter data create(x) ! { dg-error "ACC ENTER DATA directive cannot be specified within" } |
| 10 |
!$acc exit data copyout(x) ! { dg-error "ACC EXIT DATA directive cannot be specified within" } |
| 11 |
!$acc cache(y) ! { dg-error "ACC CACHE directive cannot be specified within" } |
| 12 |
!$acc wait(1) ! { dg-error "ACC WAIT directive cannot be specified within" } |
| 13 |
!$acc update self(z) ! { dg-error "ACC UPDATE directive cannot be specified within" } |
| 14 |
end do |
| 15 |
end |