hppa64: Fix fmt_f_default_field_width_3.f90 and fmt_g_default_field_width_3.f90
[official-gcc.git] / gcc / testsuite / gfortran.dg / char_length_21.f90
blob188d84e6b4051f8b0d1df13417d43c31c0c60985
1 ! { dg-do run }
2 program rabbithole
3 implicit none
4 character(len=:), allocatable :: text_block(:)
5 integer i, ii
6 character(len=10) :: cten='abcdefghij'
7 character(len=20) :: ctwenty='abcdefghijabcdefghij'
8 ii = -6
9 text_block = [character(len=ii) :: cten, ctwenty]
10 if (any(len_trim(text_block) /= 0)) STOP 1
11 end program rabbithole