OpenCores
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.0rc1/] [gcc/] [testsuite/] [gfortran.dg/] [parameter_array_element_1.f90] - Blame information for rev 427

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

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do compile }
2
! { dg-options "-fdump-tree-original" }
3
! Tests the fix for PR 30872, in which the array element references bo(1,1) etc.
4
! would be wrong for rank > 1.
5
!
6
! Contributed by Joost VandeVondele 
7
!
8
 INTEGER, PARAMETER, DIMENSION(2,3) :: bo= &
9
                    RESHAPE((/-1,1,-2,2,-3,3/),(/2,3/))
10
 REAL(kind=8), DIMENSION(  &
11
          bo(1,1):bo(2,1), &
12
          bo(1,2):bo(2,2), &
13
          bo(1,3):bo(2,3)) :: out_val
14
 out_val=0.0
15
END
16
! Scan for the 105 in the declaration real8 out_val[105];
17
! { dg-final { scan-tree-dump-times "105" 1 "original" } }
18
! { dg-final { cleanup-tree-dump "original" } }
19
 

powered by: WebSVN 2.1.0

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