2017-02-20 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / charlen_15.f90
blobe141f1eb3ac60eec0ebb11625a0faab204821ce4
1 ! { dg-do run }
2 ! PR fortran/78350
3 module m
4 type t
5 character(2) :: c(1) = [character(3) :: 'abc']
6 end type
7 type(t) :: x
8 end
9 program foo
10 use m
11 if (trim(x%c(1)) /= 'ab') call abort
12 end program foo
13 ! { dg-final { cleanup-modules "m" } }