Skip to content

Commit fa34a6c

Browse files
committed
add test
1 parent a929e62 commit fa34a6c

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

flang/test/Semantics/cuf21.cuf

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,21 @@ contains
1313
implicit none
1414
logical, intent(in), value :: back
1515
real(4) :: mval
16-
17-
call maxlocUpdate(mval, back)
18-
16+
block
17+
integer(8) :: xloc
18+
call maxlocUpdate(mval, xloc, back)
19+
end block
1920
end subroutine maxlocPartialMaskR_32F1D
2021

21-
attributes(device) subroutine maxlocUpdateR_32F(mval, back)
22+
attributes(device) subroutine maxlocUpdateR_32F(mval, xloc, back)
2223
real(4) :: mval
24+
integer(8) :: xloc
2325
logical :: back
2426
end subroutine maxlocUpdateR_32F
2527

26-
attributes(device) subroutine maxlocUpdateR_64F(mval, back)
28+
attributes(device) subroutine maxlocUpdateR_64F(mval, xloc, back)
2729
real(8) :: mval
30+
integer(8) :: xloc
2831
logical :: back
2932
end subroutine maxlocUpdateR_64F
3033
end module

0 commit comments

Comments
 (0)