OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [execute/] [getarg_1.f90] - Blame information for rev 867

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
! Check that getarg does somethig sensible.
2
program getarg_1
3
  CHARACTER*10 ARGS
4
  INTEGER*4 I
5
  I = 0
6
  CALL GETARG(I,ARGS)
7
  ! This should return the invoking command.  The actual value depends
8
  ! on the OS, but a blank string is wrong no matter what.
9
  ! ??? What about deep embedded systems?
10
  if (args.eq.'') call abort
11
  I = 1
12
  CALL GETARG(I,ARGS)
13
  if (args.ne.'') call abort
14
  I = -1
15
  CALL GETARG(I,ARGS)
16
  if (args.ne.'') call abort
17
  ! Assume we won't have been called with more that 4 args.
18
  I = 4
19
  CALL GETARG(I,ARGS)
20
  if (args.ne.'') call abort
21
  I = 1000
22
  CALL GETARG(I,ARGS)
23
  if (args.ne.'') call abort
24
end

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.