URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [whole_file_10.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do compile }! { dg-options "-fwhole-file" }! Test the fix for the fifth problem in PR40011, where the! entries were not resolved, resulting in a segfault.!! Contributed by Dominique d'Humieres <dominiq@lps.ens.fr>!recursive function fac(i) result (res)integer :: i, j, k, resk = 1goto 100entry bifac(i,j) result (res)k = j100 continueif (i < k) thenres = 1elseres = i * bifac(i-k,k)end ifend functionprogram testexternal facexternal bifacinteger :: fac, bifacprint *, fac(5)print *, bifac(5,2)print*, fac(6)print *, bifac(6,2)print*, fac(0)print *, bifac(1,2)end program test
