URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 302 |
Rev 384 |
! { dg-do run }
|
! { dg-do run }
|
! { dg-options "-fcheck=do" }
|
! { dg-options "-fcheck=do" }
|
! { dg-shouldfail "DO check" }
|
! { dg-shouldfail "DO check" }
|
!
|
!
|
! PR fortran/34656
|
! PR fortran/34656
|
! Run-time check for modifing loop variables
|
! Run-time check for modifing loop variables
|
!
|
!
|
PROGRAM test
|
PROGRAM test
|
IMPLICIT NONE
|
IMPLICIT NONE
|
INTEGER :: i
|
INTEGER :: i
|
DO i=1,100
|
DO i=1,100
|
CALL do_something()
|
CALL do_something()
|
ENDDO
|
ENDDO
|
CONTAINS
|
CONTAINS
|
SUBROUTINE do_something()
|
SUBROUTINE do_something()
|
IMPLICIT NONE
|
IMPLICIT NONE
|
DO i=1,10
|
DO i=1,10
|
ENDDO
|
ENDDO
|
END SUBROUTINE do_something
|
END SUBROUTINE do_something
|
END PROGRAM test
|
END PROGRAM test
|
! { dg-output "Fortran runtime error: Loop variable has been modified" }
|
! { dg-output "Fortran runtime error: Loop variable has been modified" }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.