URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [do_check_4.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do run }! { dg-options "-fcheck=do" }! { dg-shouldfail "DO check" }!! PR fortran/34656! Run-time check for modifing loop variables!PROGRAM testIMPLICIT NONEINTEGER :: iDO i=1,100CALL do_something()ENDDOCONTAINSSUBROUTINE do_something()IMPLICIT NONEDO i=1,10ENDDOEND SUBROUTINE do_somethingEND PROGRAM test! { dg-output "Fortran runtime error: Loop variable has been modified" }
