Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion test/smoke-fails/FNew-use_device_ptr/use_device_ptr.f95
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
program main

use omp_lib
use iso_c_binding
implicit none
interface
subroutine fortran_callable_init(a,N) bind(c)
Expand Down Expand Up @@ -40,7 +41,17 @@ subroutine fortran_callable_init(a,N) bind(c)
!$OMP TASKWAIT

!$OMP END TARGET DATA
print *,arr1, crr1

do x =1, nx
if (arr1(x) .ne. x * 2.0) then
print *, "Wrong initialization of arr1"
stop 1
end if
if (crr1(x) .ne. arr1(x)+1.0) then
print *, "Wrong value of crr1"
stop 1
end if
end do
deallocate(arr1)
deallocate(crr1)

Expand Down