URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [default_format_2.inc] - Rev 302
Compare with Previous | Blame | View Log
module test_default_formatinterface testmodule procedure test_rlend interface testinteger, parameter :: kl = selected_real_kind (precision (0.0_8) + 1)integer, parameter :: count = 200containsfunction test_rl (start, towards) result (res)integer, parameter :: k = klinteger, intent(in) :: towardsreal(k), intent(in) :: startinteger :: res, ireal(k) :: x, ycharacter(len=100) :: sres = 0if (towards >= 0) thenx = startdo i = 0, countwrite (s,*) xread (s,*) yif (y /= x) res = res + 1x = nearest(x,huge(x))end doend ifif (towards <= 0) thenx = startdo i = 0, countwrite (s,*) xread (s,*) yif (y /= x) res = res + 1x = nearest(x,-huge(x))end doend ifend function test_rlend module test_default_format
