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/] [strlen.f90] - Rev 303
Compare with Previous | Blame | View Log
! Program to test the LEN and LEN_TRIM intrinsics.subroutine test (c)character(*) ccharacter(len(c)) dd = cif (len(d) .ne. 20) call abortif (d .ne. "Longer Test String") call abortc = "Hello World"end subroutinesubroutine test2 (c)character (*) ccharacter(len(c)) dd = cif (len(d) .ne. 6) call abortif (d .ne. "Foobar") call abortend subroutineprogram strlenimplicit nonecharacter(20) ccharacter(5) a, binteger ic = "Longer Test String"call test (c)if (len(c) .ne. 20) call abortif (len_trim(c) .ne. 11) call abortcall test2 ("Foobar");end program
