URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [array_function_4.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do compile }! PR fortran/37411! This used to cause an ICE because of a missing array spec after interface! mapping.! Contributed by Kristjan Jonasson <jonasson@hi.is>MODULE B1CONTAINSsubroutine sub()integer :: x(1)character(3) :: stst = fun(x)end subroutine subfunction fun(x) result(st)integer, intent(in) :: x(1)character(lenf(x)) :: stst = 'abc'end function funpure integer function lenf(x)integer, intent(in) :: x(1)lenf = x(1)end function lenfEND MODULE B1! { dg-final { cleanup-modules "B1" } }
