2009-10-05 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / initialization_9.f90
blob2341d40d6d953fca88e9c7ff0941eaa72c326b01
1 ! { dg-do compile }
3 ! PR fortran/31639
4 ! Contributed by Martin Michlmayr <tbm AT cyrius DOT com>
6 integer function xstrcmp(s1)
7 character*(*), intent(in) :: s1
8 integer :: n1 = len(s1) ! { dg-error "Assumed character length variable" }
9 n1 = 1
10 return
11 end function xstrcmp