blob: a009be3532f3595d02ff4a1492d9d8d73773b9f3 [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
call setVariable(3)
! 9 + 1
call setVariable(getVariable() *getVariable() + (getVariable() - 2))
print *,getVariable(), " should be equal to ", 10
end program encap1