1 !Program to test SPACING intrinsic function.
10 call test_real8(33.0_8)
11 call test_real8(-33._8)
13 subroutine test_real4(x)
17 y = 2.0 ** (exponent (x) - p)
20 if ((abs (x - y) .gt. abs(x * 1e-6)) &
21 .and. (abs (x - t) .gt. abs(x * 1e-6)))call abort
24 subroutine test_real8(x)
28 y = 2.0 ** (exponent (x) - p)
31 if ((abs (x - y) .gt. abs(x * 1e-6)) &
32 .and. (abs (x - t) .gt. abs(x * 1e-6)))call abort