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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [execute/] [args.f90] - Rev 774

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

! Program to test procudure args
subroutine test (a, b)
   integer, intent (IN) :: a
   integer, intent (OUT) :: b

   if (a .ne. 42) call abort
   b = 43
end subroutine

program args
   implicit none
   external test
   integer i, j

   i = 42
   j = 0
   CALL test (i, j)
   if (i .ne. 42) call abort
   if (j .ne. 43) call abort
   i = 41
   CALL test (i + 1, j)
end program

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

powered by: WebSVN 2.1.0

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