OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gfortran.dg/] [array_constructor_type_5.f03] - Rev 384

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

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.