view gcc/testsuite/gfortran.dg/goacc/loop-4.f95 @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
line wrap: on
line source

! Ensure that loops not affiliated with acc compute regions cause an error.

subroutine test1
    !$acc loop gang ! { dg-error "loop directive must be associated with an OpenACC compute region" }
  DO i = 1,10
  ENDDO
end subroutine test1