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.0rc3/] [gcc/] [testsuite/] [gfortran.dg/] [array_section_2.f90] - Blame information for rev 516

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do compile }
2
! { dg-options "-fdump-tree-original" }
3
!
4
! PR38033 - size(a) was not stabilized correctly and so the expression was
5
! evaluated twice outside the loop and then within the scalarization loops.
6
!
7
! Contributed by Thomas Bruel  
8
!
9
program test
10
   integer, parameter :: n = 100
11
   real, pointer :: a(:),temp(:)  ! pointer or allocatable have the same effect
12
   allocate(a(n), temp(n))
13
   temp(1:size(a)) = a
14
end program
15
! { dg-final { scan-tree-dump-times "MAX_EXPR\[^\n\t\]+ubound\[^\n\t\]+lbound" 1 "original" } }
16
! { dg-final { cleanup-tree-dump "original" } }

powered by: WebSVN 2.1.0

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