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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [shape_4.f90] - Rev 801

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

! PR 35001 - we need to return 0 for the shapes of
! negative extents.  Test case adapted from Tobias Burnus.
program main
  implicit none
  integer :: i,j, a(10,10),res(2)
  j = 1
  i = 10
  res = shape(a(1:1,i:j:1))
  if (res(1) /=1 .or. res(2) /= 0) call abort
  res = shape(a(1:1,j:i:-1))
  if (res(1) /=1 .or. res(2) /= 0) call abort
end program main

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

powered by: WebSVN 2.1.0

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