OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [bound_4.f90] - Blame information for rev 315

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

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do run }
2
 
3
program test
4
  integer x(20)
5
  integer, volatile :: n
6
  n = 1
7
  if (size(x(n:2:-3)) /= 0) call abort
8
 
9
  call ha0020(-3)
10
  call ha0020(-1)
11
end program test
12
 
13
subroutine ha0020(mf3)
14
  implicit none
15
  integer xca(2), xda(2), mf3
16
 
17
  xca = 1
18
  xda = -1
19
 
20
  xca(1:2:-1) = xda(1:2:mf3)
21
 
22
  if (any (xca /= 1)) call abort
23
  if (any(xda(1:2:mf3) /= xda(1:0))) call abort
24
  if (size(xda(1:2:mf3)) /= 0) call abort
25
  if (any(shape(xda(1:2:mf3)) /= 0)) call abort
26
  if (any(ubound(xda(1:2:mf3)) /= 0)) call abort
27
  if (ubound(xda(1:2:mf3),1) /= 0) call abort
28
  if (lbound(xda(1:2:mf3),1) /= 1) call abort
29
 
30
end subroutine

powered by: WebSVN 2.1.0

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