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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gfortran.dg/] [do_check_2.f90] - Blame information for rev 437

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

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do run }
2
! { dg-options "-fcheck=do" }
3
! { dg-shouldfail "DO check" }
4
!
5
! PR fortran/34656
6
! Run-time check for modifing loop variables
7
!
8
program test
9
  implicit none
10
  integer :: i,j
11
  do i = 1, 10
12
    call modLoopVar(i)
13
  end do
14
contains
15
  subroutine modLoopVar(i)
16
    integer :: i
17
    i = i + 1
18
  end subroutine modLoopVar
19
end program test
20
! { dg-output "Fortran runtime error: Loop variable has been modified" }

powered by: WebSVN 2.1.0

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