2 ! { dg-additional-options "-fcheck=bounds -g" }
3 ! { dg-output "At line 18 .*" }
4 ! { dg-shouldfail "Different CHARACTER lengths (32/0) in array constructor" }
6 ! PR fortran/70231 - CHARACTER lengths in array constructors
10 integer, parameter :: char_len
= 32
12 character(char_len
) :: ch
= "a"
13 character(char_len
), allocatable
:: ch_array(:), res1(:), res2(:)
16 res1
= [ ch_array
, ch
] ! was false positive
18 res2
= [[ch_array
, ch(1:l
)], ch(1:l
)] ! was false negative on x86