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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [parameter_array_init_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
! Test the fix for PR34476 in which an 'out of bounds' error would be
3
! generated for the array initializations AND the implicit index 'i'
4
! would be rejected.
5
!
6
! Reported by Tobias Burnus  following a thread
7
! on comp.lang.fortran (see PR)
8
!
9
module abuse_mod
10
   implicit none
11
   integer i
12
   character(8), parameter :: HEX1 = '40490FDB'
13
   integer(1), parameter :: MSKa1(len(HEX1)) =  [(1,i=1,len(HEX1))]
14
   integer(1), parameter :: ARR1(len(HEX1)) = [( MSKa1(i), i=1,len(HEX1) )]
15
end module abuse_mod
16
! { dg-final { cleanup-modules "abuse_mod" } }

powered by: WebSVN 2.1.0

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