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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [pr19928-1.f90] - Rev 399

Go to most recent revision | Compare with Previous | Blame | View Log

! PR 19928.  Check the use of constant substring indexes in a
! scalarization loop.
! { dg-do run }
program main
  implicit none
  character (len = 5), dimension (2) :: a
  character (len = 3), dimension (2) :: b
  a = (/ 'abcde', 'ghijk' /)
  b = a(:)(2:4)
  if (b(1) .ne. 'bcd' .or. b(2) .ne. 'hij') call abort
end program main

Go to most recent revision | 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.