blob: b904f7bf77d73ef5378513c7bf91f57c5c58e0a2 [file] [log] [blame]
! { dg-do compile }
program test
implicit none
integer :: i
real :: x
!$acc parallel &
!$acc loop & ! continuation
!$acc & reduction(+:x)
! this line must be ignored
!$acc ! kernels
do i = 1,10
x = x + 0.3
enddo
! continuation must begin with sentinel
!$acc end parallel & ! { dg-error "Unexpected junk" }
! loop
print *, x
end