gcc/fortran/
[official-gcc.git] / gcc / testsuite / gfortran.dg / assumed_charlen_arg_2.f90
blobe9481d8ec8ed5fe1b99ede611cafec5039ade51f
1 ! { dg-do compile }
3 ! PR 50585: [4.6/4.7 Regression] ICE with assumed length character array argument
5 ! Contributed by Stuart Mentzer <sgm@objexx.com>
7 SUBROUTINE SUB1( str )
8 IMPLICIT NONE
9 CHARACTER(len=*) :: str(2)
10 CALL SUB2( str(1)(:3) )
11 END SUBROUTINE
13 SUBROUTINE SUB2( str )
14 IMPLICIT NONE
15 CHARACTER(*) :: str
16 END SUBROUTINE