| 1 |
! { dg-do compile } |
| 2 |
|
| 3 |
module test |
| 4 |
contains |
| 5 |
subroutine oacc1 |
| 6 |
implicit none |
| 7 |
integer :: i |
| 8 |
integer, parameter :: a = 1 |
| 9 |
!$acc declare device_resident (a) ! { dg-error "is not a variable" } |
| 10 |
!$acc data copy (a) ! { dg-error "not a variable" } |
| 11 |
!$acc end data |
| 12 |
!$acc data deviceptr (a) ! { dg-error "not a variable" } |
| 13 |
!$acc end data |
| 14 |
!$acc parallel private (a) ! { dg-error "not a variable" } |
| 15 |
!$acc end parallel |
| 16 |
!$acc serial private (a) ! { dg-error "not a variable" } |
| 17 |
!$acc end serial |
| 18 |
!$acc host_data use_device (a) ! { dg-error "not a variable" } |
| 19 |
!$acc end host_data |
| 20 |
!$acc parallel loop reduction(+:a) ! { dg-error "not a variable" } |
| 21 |
do i = 1,5 |
| 22 |
enddo |
| 23 |
!$acc end parallel loop |
| 24 |
!$acc serial loop reduction(+:a) ! { dg-error "not a variable" } |
| 25 |
do i = 1,5 |
| 26 |
enddo |
| 27 |
!$acc end serial loop |
| 28 |
!$acc parallel loop |
| 29 |
do i = 1,5 |
| 30 |
!$acc cache (a) ! { dg-error "not a variable" } |
| 31 |
enddo |
| 32 |
!$acc end parallel loop |
| 33 |
!$acc serial loop |
| 34 |
do i = 1,5 |
| 35 |
!$acc cache (a) ! { dg-error "not a variable" } |
| 36 |
enddo |
| 37 |
!$acc end serial loop |
| 38 |
!$acc update device (a) ! { dg-error "not a variable" } |
| 39 |
!$acc update host (a) ! { dg-error "not a variable" } |
| 40 |
!$acc update self (a) ! { dg-error "not a variable" } |
| 41 |
end subroutine oacc1 |
| 42 |
end module test |