URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [bounds_check_14.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do run }! { dg-options "-fbounds-check" }program testinteger x(20)integer, volatile :: nn = 1if (size(x(n:2:-3)) /= 0) call abortcall ha0020(-3)call ha0020(-1)end program testsubroutine ha0020(mf3)implicit noneinteger xca(2), xda(2), mf3xca = 1xda = -1xca(1:2:-1) = xda(1:2:mf3)if (any (xca /= 1)) call abortif (any(xda(1:2:mf3) /= xda(1:0))) call abortif (size(xda(1:2:mf3)) /= 0) call abortif (any(shape(xda(1:2:mf3)) /= 0)) call abortif (any(ubound(xda(1:2:mf3)) /= 0)) call abortif (ubound(xda(1:2:mf3),1) /= 0) call abortif (lbound(xda(1:2:mf3),1) /= 1) call abortend subroutine
