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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [shift-alloc.f90] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
! PR 22144: eoshift1, eoshift3 and cshift1 used to lack memory
3
! allocation, which caused the writes to segfault.
4
program main
5
  implicit none
6
  integer, dimension (:,:),allocatable :: a
7
  integer, dimension (3) :: sh, bo
8
  character(len=80) line1, line2
9
  integer :: i
10
 
11
  allocate (a(3,3))
12
  a = reshape((/(i,i=1,9)/),shape(a))
13
  sh = (/ 2, -1, -2 /)
14
  bo = (/ -3, -2, -1 /)
15
  write(unit=line1,fmt='(10I5)') cshift(a, shift=sh)
16
  write(unit=line1,fmt='(10I5)') eoshift(a, shift=sh)
17
  write(unit=line1,fmt='(10I5)') eoshift(a, shift=sh, boundary=bo)
18
end program main

powered by: WebSVN 2.1.0

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