URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [recursive_check_10.f90] - Rev 801
Go to most recent revision | Compare with Previous | Blame | View Log
! { dg-do run }
! { dg-options "-fcheck=recursion" }
!
! PR fortran/39577
!
! OK - no recursion
program test
integer :: i
i = f(.false.)
print *,i
i = f(.false.)
print *,i
contains
integer function f(rec)
logical :: rec
if(rec) then
f = g()
else
f = 42
end if
end function f
integer function g()
g = f(.false.)
end function g
end program test
Go to most recent revision | Compare with Previous | Blame | View Log