summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/initialization_18.f90
blob: 4e26e1b9ec0a3faaddd920a23a672ee6e9e19837 (plain)
1
2
3
4
5
6
7
8
9
10
! { dg-do compile }
! { dg-options "-std=f95 -Wall" }
!
! PR fortran/34915
! Testcase contributed by Al Greynolds via comp.lang.fortran.
!

 character(*),dimension(3),parameter :: a=(/'a()  ','b(,) ','c(,,)'/)
 integer,dimension(3),parameter :: l=len_trim(a)
end