1 module test_default_format
3 module procedure test_rl
6 integer, parameter :: kl = selected_real_kind (precision (0.0_8) + 1)
7 integer, parameter :: count = 200
11 function test_rl (start, towards) result (res)
12 integer, parameter :: k = kl
13 integer, intent(in) :: towards
14 real(k), intent(in) :: start
18 character(len=100) :: s
22 if (towards >= 0) then
27 if (y /= x) res = res + 1
28 x = nearest(x,huge(x))
32 if (towards <= 0) then
37 if (y /= x) res = res + 1
38 x = nearest(x,-huge(x))
43 end module test_default_format