ieee_9.f90: XFAIL on arm*-*-gnueabi[hf].
[official-gcc.git] / gcc / testsuite / gfortran.dg / nested_array_constructor_2.f90
blobced76d16719f09ec5165d452f3b13018e805eb32
1 ! { dg-do run }
2 ! { dg-options "-fbounds-check" }
4 ! PR fortran/35846
5 ! This used to ICE because the charlength of the trim-expression was
6 ! NULL.
8 ! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
10 implicit none
11 character(len=2) :: c(3)
13 c = 'a'
14 c = (/ (/ trim(c(1)), 'a' /)//'c', 'cd' /)
16 print *, c
18 if (c(1) /= 'ac' .or. c(2) /= 'ac' .or. c(3) /= 'cd') then
19 STOP 1
20 end if
22 end