Retro68/gcc/libgomp/testsuite/libgomp.oacc-fortran/declare-2.f90

17 lines
239 B
Fortran
Raw Normal View History

2018-12-28 15:30:48 +00:00
! { dg-do run }
2017-04-10 11:32:00 +00:00
module globalvars
implicit none
integer a
!$acc declare create (a)
end module globalvars
program test
use globalvars
use openacc
implicit none
2018-12-28 15:30:48 +00:00
if (acc_is_present (a) .neqv. .true.) STOP 1
2017-04-10 11:32:00 +00:00
end program test