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/] [optstring_1.f90] - Rev 378
Go to most recent revision | Compare with Previous | Blame | View Log
! Test optional character arguments. We still need to pass a string! length for the absent argumentsprogram optional_string_1implicit nonecall test(1, "test");call test(2, c=42, b="Hello World")containssubroutine test(i, a, b, c)integer :: icharacter(len=4), optional :: acharacter(len=*), optional :: binteger, optional :: cif (i .eq. 1) thenif (a .ne. "test") call abortelseif (b .ne. "Hello World") call abortif (c .ne. 42) call abortend ifend subroutineend program
Go to most recent revision | Compare with Previous | Blame | View Log
