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/] [char_length_13.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do compile }!! PR fortran/38095!! Contributed by Vivek Rao!! Compiling the program below gave an ICE!module barimplicit nonecontainselemental function trim_append(xx,yy) result(xy)character (len=*), intent(in) :: xx,yycharacter (len=len(xx) + len(yy)) :: xyxy = trim(xx) // yyend function trim_appendfunction same(xx) result(yy)character (len=*), intent(in) :: xx(:)character (len=len(xx)) :: yy(size(xx))yy = [xx]end function samesubroutine foo(labels)character (len=*), intent(in) :: labels(:)print*,"size(labels)=",size(labels)end subroutine foosubroutine xmain()call foo(trim_append(["a"],same(["b"])))end subroutine xmainend module barprogram mainuse barcall xmain()end program main! { dg-final { cleanup-modules "bar" } }
