| 1 |
! { dg-do compile } |
| 2 |
|
| 3 |
program test |
| 4 |
implicit none |
| 5 |
|
| 6 |
integer :: i |
| 7 |
|
| 8 |
if (.true.) then |
| 9 |
!$acc parallel |
| 10 |
end if ! { dg-error "Unexpected" } |
| 11 |
!$acc end parallel |
| 12 |
end if |
| 13 |
|
| 14 |
if (.true.) then |
| 15 |
!$acc kernels |
| 16 |
end if ! { dg-error "Unexpected" } |
| 17 |
!$acc end kernels |
| 18 |
end if |
| 19 |
|
| 20 |
if (.true.) then |
| 21 |
!$acc serial |
| 22 |
end if ! { dg-error "Unexpected" } |
| 23 |
!$acc end serial |
| 24 |
end if |
| 25 |
|
| 26 |
!$acc parallel |
| 27 |
if (.true.) then |
| 28 |
!$acc end parallel ! { dg-error "Unexpected" } |
| 29 |
end if |
| 30 |
!$acc end parallel |
| 31 |
|
| 32 |
!$acc kernels |
| 33 |
if (.true.) then |
| 34 |
!$acc end kernels ! { dg-error "Unexpected" } |
| 35 |
end if |
| 36 |
!$acc end kernels |
| 37 |
|
| 38 |
!$acc serial |
| 39 |
if (.true.) then |
| 40 |
!$acc end serial ! { dg-error "Unexpected" } |
| 41 |
end if |
| 42 |
!$acc end serial |
| 43 |
|
| 44 |
!$acc parallel |
| 45 |
if (.true.) then |
| 46 |
end if |
| 47 |
!$acc end parallel |
| 48 |
|
| 49 |
!$acc kernels |
| 50 |
if (.true.) then |
| 51 |
end if |
| 52 |
!$acc end kernels |
| 53 |
|
| 54 |
!$acc serial |
| 55 |
if (.true.) then |
| 56 |
end if |
| 57 |
!$acc end serial |
| 58 |
|
| 59 |
if (.true.) then |
| 60 |
!$acc parallel |
| 61 |
!$acc end parallel |
| 62 |
end if |
| 63 |
|
| 64 |
if (.true.) then |
| 65 |
!$acc kernels |
| 66 |
!$acc end kernels |
| 67 |
end if |
| 68 |
|
| 69 |
if (.true.) then |
| 70 |
!$acc serial |
| 71 |
!$acc end serial |
| 72 |
end if |
| 73 |
|
| 74 |
end program test |