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.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [array_initializer_3.f90] - Rev 154

Compare with Previous | Blame | View Log

! { dg-do compile }
! Tests the fix for PR28923 in which initializer array constructors with
! a missing initial array index and negative stride would be incorrectly
! interpreted.
!
! Contributed by Dominique d'Humieres  <dominiq@lps.ens.fr>
!
real, dimension(3,3), parameter :: a=reshape ((/(i, i = 1,9)/),(/3,3/))
real, dimension(2,3) :: b=a(:2:-1,:)  ! { dg-error "different shape for Array assignment" }
real, dimension(2,3) :: c=a(3:2:-1,:)
print *, b
print *, c
end

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.