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/] [parameter_array_section_2.f90] - Blame information for rev 399

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

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do run }
2
! { dg-options "-O" }
3
! Test the fix for PR31011 in which the length of the array sections
4
! with stride other than unity were incorrectly calculated.
5
!
6
! Contributed by 
7
!
8
program PotentialMatrix
9
 implicit none
10
 real(kind=8),dimension(2),parameter::v2=(/1,2/)
11
 real(kind=8),dimension(4),parameter::v4=(/1,2,3,4/)
12
 if (any (v2*v4(1:3:2) .ne. (/1,6/))) call abort ()
13
 if (any (v2*v4(3:1:-2) .ne. (/3,2/))) call abort ()
14
end

powered by: WebSVN 2.1.0

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