summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/nested_array_constructor_4.f90
blob: cb113e9c9aeb0cdf00cc610b74da408ac00c0940 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
! { dg-do run }

! PR fortran/35846
! Alternate test that also produced an ICE because of a missing length.

PROGRAM test
  IMPLICIT NONE
  CHARACTER(LEN=2) :: x
  INTEGER :: length

  x = 'a'
  length = LEN ( (/ TRIM(x), 'a' /) // 'c')

  IF (length /= 2) THEN
    CALL abort ()
  END IF
END PROGRAM