1
0
mirror of https://github.com/catseye/SixtyPical.git synced 2024-12-23 21:33:05 +00:00

Add failing test for a vector being able to name itself in outputs.

This commit is contained in:
Chris Pressey 2017-12-11 16:57:18 +00:00
parent 7323927f72
commit 2a71c7e247

View File

@ -305,6 +305,25 @@ Only vectors can be decorated with constraints like that.
| }
? SyntaxError
A vector can name itself in its inputs, outputs, and trashes.
| vector cinv
| inputs cinv, a
| outputs cinv, x
| trashes a, x, z, n
| @ 788
|
| routine foo {
| ld a, 0
| }
| routine main {
| with interrupts off {
| copy foo, cinv
| }
| call cinv
| }
= ok
goto.
| routine foo {