rt_gccstream/gcc/testsuite/gfortran.dg/char_allocation_1.f90

12 lines
192 B
Fortran

! PR fortran/31974
! { dg-do run }
subroutine foo (n)
integer :: n
character (len = n) :: v(n)
v = ''
if (any (v /= '')) call abort
end subroutine foo
call foo(7)
end