URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [parameter_array_section_1.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do compile }! Tests the fix for PR29821, which was due to failure to simplify the! array section, since the section is not constant, provoking failure! to resolve the argument of SUM and therefore to resolve SUM itself.!! Contributed by Harald Anlauf <anlauf@gmx.de>!module gfcbug45implicit nonecontainssubroutine fooreal, external :: mysuminteger :: ireal :: areal, parameter :: eps(2) = (/ 1, 99 /)i = 1a = sum (eps(i:i+1) * eps)print *, aend subroutine fooend module gfcbug45use gfcbug45call fooend! { dg-final { cleanup-modules "gfcbug45" } }
