1! { dg-do run }
2!
3! PR fortran/27997
4!
5! Array constructor with typespec, length parameter.
6!
7program test
8  implicit none
9  character(15) :: a(3)
10  a =  (/ character(len=7) :: 'Takata', 'Tanaka', 'Hayashi' /)
11  if ( len([ character(len=7) :: ]) /= 7) call abort()
12  if ( size([ integer :: ]) /= 0) call abort()
13  if(     a(1) /= 'Takata'  .or. a(1)(7:7)   /= achar(32) &
14                            .or. a(1)(15:15) /= achar(32) &
15     .or. a(2) /= 'Tanaka'  .or. a(2)(7:7)   /= achar(32) &
16                            .or. a(2)(15:15) /= achar(32) &
17     .or. a(3) /= 'Hayashi' .or. a(3)(8:8)   /= achar(32) &
18                            .or. a(3)(15:15) /= achar(32))&
19   call abort()
20end program test
21