Mercurial > hg > CbC > CbC_gcc
view libgomp/testsuite/libgomp.oacc-fortran/declare-4.f90 @ 138:fc828634a951
merge
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 08 Nov 2018 14:17:14 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
! { dg-do run } module vars implicit none real b !$acc declare create (b) end module vars program test use vars use openacc implicit none real a if (acc_is_present (b) .neqv. .true.) STOP 1 a = 2.0 !$acc parallel copy (a) b = a a = 1.0 a = a + b !$acc end parallel if (acc_is_present (b) .neqv. .true.) STOP 2 if (a .ne. 3.0) STOP 3 end program test