From fa244c1550560ae7760e2f2958eed426a152269e Mon Sep 17 00:00:00 2001 From: Chris Pressey Date: Tue, 20 Oct 2015 18:53:03 +0100 Subject: [PATCH] Some more tests, which fail because I forgot to pull the repo :/ --- tests/SixtyPical Analysis.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tests/SixtyPical Analysis.md b/tests/SixtyPical Analysis.md index f7e4c34..0f150f4 100644 --- a/tests/SixtyPical Analysis.md +++ b/tests/SixtyPical Analysis.md @@ -1148,3 +1148,25 @@ Calling the vector has indeed trashed stuff etc, | call foo | } ? UninitializedOutputError: x + +A goto, if present, must appear at the end of the routine. + + | routine bar trashes x, z, n { + | ld x, 200 + | } + | + | routine main trashes x, z, n { + | ld x, 0 + | goto bar + | } + = ok + + | routine bar trashes x, z, n { + | ld x, 200 + | } + | + | routine main trashes x, z, n { + | goto bar + | ld x, 0 + | } + ? IllegalGotoError