repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Increase timeout factor for hppa*-*-* in gcc.dg/long_branch.c
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
do_check_4.f90
blob
5b087e4dde33d955ae38f9a977170bb68f5e6fda
1
! { 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
9
module
x
10
integer
::
i
11
contains
12
SUBROUTINE
do_something
()
13
IMPLICIT NONE
14
DO
i
=
1
,
10
15
ENDDO
16
END SUBROUTINE
do_something
17
end module
x
18
19
PROGRAM
test
20
use
x
21
IMPLICIT NONE
22
DO
i
=
1
,
100
23
CALL
do_something
()
24
ENDDO
25
end PROGRAM
test
26
27
! { dg-output "Fortran runtime error: Loop variable has been modified" }