1
0
mirror of https://github.com/catseye/SixtyPical.git synced 2024-07-05 15:29:07 +00:00

Some more tests, which fail because I forgot to pull the repo :/

This commit is contained in:
Chris Pressey 2015-10-20 18:53:03 +01:00
parent 16649042cb
commit fa244c1550

View File

@ -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