OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [array_initializer_3.f90] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! Tests the fix for PR28923 in which initializer array constructors with
3
! a missing initial array index and negative stride would be incorrectly
4
! interpreted.
5
!
6
! Contributed by Dominique d'Humieres  
7
!
8
real, dimension(3,3), parameter :: a=reshape ((/(i, i = 1,9)/),(/3,3/))
9
real, dimension(2,3) :: b=a(:2:-1,:)  ! { dg-error "Different shape for array assignment" }
10
real, dimension(2,3) :: c=a(3:2:-1,:)
11
print *, b
12
print *, c
13
end
14
 

powered by: WebSVN 2.1.0

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