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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [inline_sum_bounds_check_1.f90] - Blame information for rev 774

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
! { dg-options "-fbounds-check" }
3
 
4
      integer, parameter :: nx = 3, ny = 4
5
 
6
      integer :: i, j, too_big
7
 
8
      integer, parameter, dimension(nx,ny) :: p = &
9
        reshape((/ (i*i, i=1,size(p)) /), shape(p))
10
 
11
      integer, dimension(nx,ny) :: a
12
 
13
      integer, dimension(:), allocatable :: b
14
 
15
      allocate(b(nx))
16
 
17
      a = p
18
      too_big = ny + 1
19
 
20
      b = sum(a(:,1:too_big),2)
21
      end
22
! { dg-shouldfail "outside of expected range" }

powered by: WebSVN 2.1.0

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