URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
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,j
|
integer :: i,j
|
do i = 1, 10
|
do i = 1, 10
|
call modLoopVar(i)
|
call modLoopVar(i)
|
end do
|
end do
|
contains
|
contains
|
subroutine modLoopVar(i)
|
subroutine modLoopVar(i)
|
integer :: i
|
integer :: i
|
i = i + 1
|
i = i + 1
|
end subroutine modLoopVar
|
end subroutine modLoopVar
|
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.