From 2a71c7e247ed33e8f4f36e11a6643e170abdabb9 Mon Sep 17 00:00:00 2001 From: Chris Pressey Date: Mon, 11 Dec 2017 16:57:18 +0000 Subject: [PATCH] Add failing test for a vector being able to name itself in outputs. --- tests/SixtyPical Syntax.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/SixtyPical Syntax.md b/tests/SixtyPical Syntax.md index 7deb5e1..b7b6c73 100644 --- a/tests/SixtyPical Syntax.md +++ b/tests/SixtyPical Syntax.md @@ -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 {