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/] [getarg_1.f90] - Rev 303
Compare with Previous | Blame | View Log
! Check that getarg does somethig sensible.program getarg_1CHARACTER*10 ARGS, ARGS2INTEGER*4 IINTEGER*2 I2I = 0CALL GETARG(I,ARGS)! This should return the invoking command. The actual value depends! on the OS, but a blank string is wrong no matter what.! ??? What about deep embedded systems?I2 = 0CALL GETARG(I2,ARGS2)if (args2.ne.args) call abortif (args.eq.'') call abortI = 1CALL GETARG(I,ARGS)if (args.ne.'') call abortI = -1CALL GETARG(I,ARGS)if (args.ne.'') call abort! Assume we won't have been called with more that 4 args.I = 4CALL GETARG(I,ARGS)if (args.ne.'') call abortI = 1000CALL GETARG(I,ARGS)if (args.ne.'') call abortend
