blob: 26b78dfa55b53b9c9c911715aca15ef11e231043 [file] [log] [blame]
module mod
implicit none
integer :: variable !<<<<< 3, 14, 8, pass
private :: variable
contains
subroutine setVariable(value)
implicit none
integer, intent(in) :: value
variable = value
end subroutine
integer function getVariable()
implicit none
getVariable = variable
end function
end module
program encap1
use mod
implicit none
print *,getVariable()
call setVariable(3)
print *,getVariable()
end program encap1