view gcc/testsuite/gfortran.dg/goacc/pr94120-1.f90 @ 152:2b5abeee2509

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

! { dg-do compile }
!
! PR fortran/94120
!
implicit none
integer :: i
contains
  subroutine f()
    !$acc declare copy(i)  ! { dg-error "Variable 'i' shall be declared in the same scoping unit as !.ACC DECLARE" }
  end
end