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/] [intrinsic_len.f90] - Rev 303
Compare with Previous | Blame | View Log
! Program to test the LEN intrinsicprogram testcharacter(len=10) acharacter(len=8) wtype personcharacter(len=10) nameinteger ageend type persontype(person) Tominteger na = w (n)if ((a .ne. "01234567") .or. (n .ne. 8)) call abortif (len(Tom%name) .ne. 10) call abortcall array_test()endfunction w(i)character(len=8) winteger iw = "01234567"i = len(w)end! This is the testcase from PR 15211 converted to a subroutinesubroutine array_testimplicit nonecharacter(len=10) a(4)if (len(a) .NE. 10) call abort()end subroutine array_test
