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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [execute/] [intrinsic_mmloc_4.f90] - Blame information for rev 707

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

Line No. Rev Author Line
1 695 jeremybenn
! Check zero sized arrays work correcly
2
! From PR12704
3
program intrinsic_mmloc_4
4
  integer, allocatable, dimension(:) :: d
5
  integer, allocatable, dimension(:,:) :: a
6
  integer, dimension(2) :: b
7
 
8
  allocate (d(0))
9
  if (maxloc (d, 1) .ne. 0) call abort()
10
  allocate (a(1, 0))
11
  b = minloc (a)
12
  if (any (b .ne. 0)) call abort()
13
end program

powered by: WebSVN 2.1.0

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