2017-12-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gfortran.dg / nested_array_constructor_1.f90
blob54417a0dedda8b281d063b9e1d76cf047bdcf220
1 ! { dg-do compile }
2 ! This test is run with result-checking and -fbounds-check as
3 ! nested_array_constructor_2.f90
5 ! PR fortran/35846
6 ! This used to ICE because the charlength of the trim-expression was
7 ! NULL.
9 ! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
11 implicit none
12 character(len=2) :: c(3)
14 c = 'a'
15 c = (/ (/ trim(c(1)), 'a' /)//'c', 'cd' /)
17 print *, c
19 end