URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [recursive_stack.f90] - Rev 399
Go to most recent revision | Compare with Previous | Blame | View Log
! { dg-do run }
! { dg-options "-frecursive" }
program recursive_stack
call foo (.true.)
end program recursive_stack
subroutine foo (recurse)
logical recurse
integer iarray(100,100)
if (recurse) then
iarray(49,49) = 17
call bar
if (iarray(49,49) .ne. 17) call abort
else
iarray(49,49) = 21
end if
end subroutine foo
subroutine bar
call foo (.false.)
end subroutine bar
Go to most recent revision | Compare with Previous | Blame | View Log