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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [execute/] [intrinsic_mmloc_4.f90] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 303 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.