Skip to content

Commit 9e0c54b

Browse files
committed
delete errors
1 parent 797c143 commit 9e0c54b

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

offload/test/offloading/fortran/target-has-device-addr1.f90

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,14 @@ module m
88
use iso_c_binding
99

1010
contains
11-
integer function target_has_device_addr()
12-
integer :: errors
11+
subroutine target_has_device_addr()
1312
integer, target :: x
1413
integer, pointer :: first_scalar_device_addr
1514
type(c_ptr) :: cptr_scalar1
1615

1716
integer :: res1, res2
1817

1918
nullify (first_scalar_device_addr)
20-
errors = 0
2119
x = 10
2220

2321
!$omp target enter data map(to: x)
@@ -33,19 +31,15 @@ integer function target_has_device_addr()
3331
res1 = first_scalar_device_addr
3432
res2 = x
3533
!$omp end target
36-
target_has_device_addr = errors
3734
print *, "res1", res1, "res2", res2
38-
end function
35+
end subroutine
3936
end module
4037

4138

4239
program p
4340
use m
44-
integer :: errors
4541

46-
errors = target_has_device_addr()
47-
print *, "errors=", errors
42+
call target_has_device_addr()
4843
end
4944

5045
!CHECK: res1 11 res2 11
51-
!CHECK: errors= 0

0 commit comments

Comments
 (0)