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/] [mainsub.f90] - Diff between revs 149 and 154

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
! Program to test compilation of subroutines following the main program
! Program to test compilation of subroutines following the main program
program mainsub
program mainsub
   implicit none
   implicit none
   integer i
   integer i
   external test
   external test
   i = 0
   i = 0
   call test (i)
   call test (i)
   if (i .ne. 42) call abort
   if (i .ne. 42) call abort
end program
end program
subroutine test (p)
subroutine test (p)
   implicit none
   implicit none
   integer p
   integer p
   p = 42
   p = 42
end subroutine
end subroutine
 
 

powered by: WebSVN 2.1.0

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