| ! { dg-do compile } |
| ! { dg-additional-options "-fopenmp" } |
| |
| module test |
| contains |
| subroutine ichi |
| implicit none |
| integer :: i |
| !$acc parallel |
| !$omp do ! { dg-error "cannot be specified" } |
| do i = 1,5 |
| enddo |
| !$acc end parallel |
| end subroutine ichi |
| |
| subroutine ni |
| implicit none |
| integer :: i |
| !$omp parallel |
| !$acc loop ! { dg-error "cannot be specified" } |
| do i = 1,5 |
| enddo |
| !$omp end parallel |
| end subroutine ni |
| |
| subroutine san |
| implicit none |
| integer :: i |
| !$omp do |
| !$acc loop ! { dg-error "Unexpected" } |
| do i = 1,5 |
| enddo |
| end subroutine san |
| |
| subroutine yon |
| implicit none |
| integer :: i |
| !$acc loop |
| !$omp do ! { dg-error "Expected DO loop" } |
| do i = 1,5 |
| enddo |
| end subroutine yon |
| |
| subroutine go |
| implicit none |
| integer :: i, j |
| |
| !$omp parallel |
| do i = 1,5 |
| !$acc kernels ! { dg-error "cannot be specified" } |
| do j = 1,5 |
| enddo |
| !$acc end kernels |
| enddo |
| !$omp end parallel |
| end subroutine go |
| |
| subroutine roku |
| implicit none |
| |
| !$acc data |
| !$omp parallel ! { dg-error "cannot be specified" } |
| !$omp end parallel |
| !$acc end data |
| end subroutine roku |
| |
| subroutine nana |
| !$acc parallel & |
| !$omp do ! { dg-error "Wrong OpenACC continuation" } |
| do i = 1, 5 ! { dg-error "The !.OMP DO directive cannot be specified within a !.ACC PARALLEL region" "" { target *-*-* } .-1 } |
| end do |
| !$acc end parallel |
| |
| !$omp parallel & |
| !$acc kernels loop ! { dg-error "Wrong OpenMP continuation" } |
| do i = 1, 5 ! { dg-error "The !.ACC KERNELS LOOP directive cannot be specified within a !.OMP PARALLEL region" "" { target *-*-* } .-1 } |
| end do |
| !$omp end parallel |
| |
| !$omp parallel & |
| !$acc loop ! { dg-error "Wrong OpenMP continuation" } |
| do i = 1, 5 ! { dg-error "The !.ACC LOOP directive cannot be specified within a !.OMP PARALLEL region" "" { target *-*-* } .-1 } |
| end do |
| !$omp end parallel |
| end subroutine nana |
| end module test |