lto: Remove random_seed from section name.
[official-gcc.git] / gcc / testsuite / gfortran.dg / recursive_check_10.f90
bloba30b82caaf2683d281beafa1e2cf4943ec8a9c10
1 ! { dg-do run }
2 ! { dg-options "-fcheck=recursion" }
4 ! PR fortran/39577
6 ! OK - no recursion
7 program test
8 integer :: i
9 i = f(.false.)
10 print *,i
11 i = f(.false.)
12 print *,i
13 contains
14 integer function f(rec)
15 logical :: rec
16 if(rec) then
17 f = g()
18 else
19 f = 42
20 end if
21 end function f
22 integer function g()
23 g = f(.false.)
24 end function g
25 end program test