URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [execute/] [contained_3.f90] - Rev 695
Compare with Previous | Blame | View Log
! Program to test contained functions calling their siblings.! This is tricky because we don't find the declaration for the sibling! function until after the caller has been parsed.program contained_3call testcontainssubroutine testif (sub(3) .ne. 6) call abortend subroutineinteger function sub(i)integer iif (i .gt. 1) thensub = sub2(i) * ielsesub = 1end ifend functioninteger function sub2(i)integer isub2 = sub(i - 1)end functionend program
