2011-05-23 Tom de Vries <tom@codesourcery.com>
[official-gcc.git] / gcc / testsuite / gfortran.dg / initialization_9.f90
blobd90404748803b2defed8b2e00c878a36cad86fd0
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 or deferred character length variable" }
9 n1 = 1
10 return
11 end function xstrcmp