Skip to content

Commit d60edf8

Browse files
Replaced s6() with an interface, since only care about the call
1 parent f52136b commit d60edf8

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

flang/test/Lower/force-temp.f90

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,15 @@ subroutine s5()
8888
call pass_intent_out(p)
8989
end subroutine
9090
subroutine call_s6()
91+
interface
92+
subroutine s6(b)
93+
import :: base
94+
type(base), intent(inout) :: b(:)
95+
end subroutine s6
96+
end interface
9197
!CHECK-LABEL: func.func @_QMtestPcall_s6
9298
!CHECK-NOT: hlfir.copy_in
93-
!CHECK: fir.call @_QMtestPs6
99+
!CHECK: fir.call @_QPs6
94100
!CHECK-NOT: hlfir.copy_out
95101
class(base), pointer :: pb(:)
96102
type(child), target :: c(2)
@@ -99,8 +105,4 @@ subroutine call_s6()
99105
pb => c
100106
call s6(pb)
101107
end subroutine call_s6
102-
subroutine s6(b)
103-
type(base), intent(inout) :: b(:)
104-
b%i = 42
105-
end subroutine s6
106108
end module

0 commit comments

Comments
 (0)