blob: 7f06a62f5b06bb151869e5fd1f732cb8d754c4ca [file] [log] [blame]
program Hello
implicit none
integer :: i
i = 3
call Sub(i + 1)
print *, "The integer is ", i
contains
subroutine Sub(i)
integer :: i
integer :: x
x = i
print *, x
end subroutine Sub
subroutine SomeSub(y,z)
real :: y
real :: z
real :: x
x = y + z
y = 22
z = y + z
print *, x
end subroutine SomeSub
end program