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.fortran-torture/] [execute/] [iolength_1.f90] - Rev 303
Compare with Previous | Blame | View Log
! Test that IOLENGTH works for dynamic arraysprogram iolength_1implicit none! 32 bit, i.e. 4 byte integer (every gcc architecture should have this?)integer, parameter :: int32 = selected_int_kind(9)integer(int32), allocatable :: a(:)integer :: iol, alengthreal :: rcall random_number(r)alength = nint(r*20)allocate(a(alength))inquire (iolength = iol) aif ( 4*alength /= iol) thencall abortend ifend program iolength_1
