Files
Eremey Valetov 0aea7d4812 Accept RELABEL in the 1954 subset.
The report cycles one dimension so the subscript that is not 1
becomes the new first element. A later reference, including a name
that shares those words, sees the moved values. FORTRAN I and II
still reject the statement.
2026-11-13 17:09:52 -05:00

18 lines
348 B
FortranFixed

C RELABEL A(3) ON A VECTOR OF 7. PRINTED PAGE 15.
C STDOUT IS THIS RUNTIME. NOT AN I704 LISTING.
DIMENSION N(7)
N(1) = 1
N(2) = 2
N(3) = 3
N(4) = 4
N(5) = 5
N(6) = 6
N(7) = 7
RELABEL N(1)
RELABEL N(3)
PRINT N
N(1) = 9
PRINT N(1), N(6), N(7)
STOP
END