☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gfortran.dg
/
goto_1.f
☽
☼
gcc/testsuite/gfortran.dg/goto_1.f
code
plain
raw
1
! { dg-do run }
2
! { dg-options "-std=legacy" }
3
! PR 18540
4
! Verify that old-style cross-block GOTOs work
5
I = 1
6
GO TO 2
7
IF (I .EQ. 0) THEN
8
2 IF (I .NE. 1) STOP 1
9
I = 0
10
GOTO 3
11
ELSE
12
3 I = 2
13
END IF
14
IF (I .NE. 2) STOP 2
15
END