subroutine foo (i, j) integer :: i, j, k, l k = i l = j i = i * 10 i = i + j call baz (i) i = i + j end subroutine subroutine bar (i, j) integer :: i, j, k, l k = i l = j i = i * 10 i = i + j call baz (i) i = i + j end subroutine program entryval interface bar subroutine bar (i, j) integer :: i, j end subroutine end interface integer :: i i = 6 call foo (i, 7) i = 8 call bar (i, 7) i = 10 call foo (i, 7) i = 12 call bar (i, 7) end