URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [gfortran.dg/] [array_constructor_type_5.f03] - Rev 516
Compare with Previous | Blame | View Log
! { dg-do run }
!
! PR fortran/27997
!
! Array constructor with typespec and small length value.
!
program test
implicit none
character(15) :: a(3)
a = (/ character(len=3) :: 'Takata', 'Tanaka', 'Hayashi' /)
if( a(1) /= 'Tak' .or. a(1)(4:4) /= achar(32) &
.or. a(1)(15:15) /= achar(32) &
.or. a(2) /= 'Tan' .or. a(2)(4:4) /= achar(32) &
.or. a(2)(15:15) /= achar(32) &
.or. a(3) /= 'Hay' .or. a(3)(4:4) /= achar(32) &
.or. a(3)(15:15) /= achar(32))&
call abort()
end program test