ascot diagnostics

A7548

Warning: No QUIT or RETURN; execution falls through to what follows

The body of a label, or a routine’s main body, ends without a Quit or Return, and no label follows for it to fall into. A label’s body is reported when the label is the last one or a procedure block comes next. A main body is reported only when a procedure block comes next. IRIS compiles the body and quits at its end implicitly, so the code runs. End the body with an explicit Quit to show that it ends on purpose.

IRIS compiles the example.

ROUTINE Demo.MissingQuit
Main
    Do Report
    Write "done", !
    Quit
Report
    Write "reporting", ! //! A7548

All diagnostics