Skip to content

Instantly share code, notes, and snippets.

@Sgeo
Last active March 16, 2026 00:41
Show Gist options
  • Select an option

  • Save Sgeo/576c5f5d95b4780c50eb669b4fd67cce to your computer and use it in GitHub Desktop.

Select an option

Save Sgeo/576c5f5d95b4780c50eb669b4fd67cce to your computer and use it in GitHub Desktop.
$000:SYSINTEST\WEIRD.F
*Top of file
/inc fortg
10 FORMAT(1X,I4)
DO 20 J=1,2
CALL AAA(5)
20 CONTINUE
END
SUBROUTINE AAA(I)
10 FORMAT(' BEFORE: ',I4)
WRITE(6,10) I
I = 10
20 FORMAT(' AFTER: ',I4)
WRITE(6,20) I
RETURN
END
*End of file
*Go \SYSINTEST>
weird.f
*In progress
0055D0 BYTES USED
EXECUTION BEGINS
BEFORE: 5
AFTER: 10
BEFORE: 10
AFTER: 10
*End
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment