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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
  integer :: a(3), n
3
  a(1) = -huge(n)
4
  a(2) = -huge(n)
5
  a(3) = -huge(n)
6
  a(1) = a(1) - 1
7
  a(2) = a(2) - 1
8
  a(3) = a(3) - 1
9
  n = maxloc (a, dim = 1)
10
  if (n .ne. 1) call abort
11
  a(2) = -huge(n)
12
  n = maxloc (a, dim = 1)
13
  if (n .ne. 2) call abort
14
end

powered by: WebSVN 2.1.0

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