Retro68/gcc/gcc/testsuite/gfortran.dg/charlen_15.f90
2018-12-28 16:30:48 +01:00

13 lines
211 B
Fortran

! { dg-do run }
! PR fortran/78350
module m
type t
character(2) :: c(1) = [character(3) :: 'abc']
end type
type(t) :: x
end
program foo
use m
if (trim(x%c(1)) /= 'ab') STOP 1
end program foo