summaryrefslogtreecommitdiff
path: root/tests/romtest.mj
diff options
context:
space:
mode:
Diffstat (limited to 'tests/romtest.mj')
-rw-r--r--tests/romtest.mj9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/romtest.mj b/tests/romtest.mj
new file mode 100644
index 0000000..6d2daf2
--- /dev/null
+++ b/tests/romtest.mj
@@ -0,0 +1,9 @@
+dec7(i:[4]) = (o:[7]) where
+ decode7 = rom<4,7>(i);
+ o = decode7
+end where
+
+main(i1:[4],i2:[4]) = (o1:[7],o2:[7]) where
+ o1 = dec7(i1);
+ o2 = dec7(i2)
+end where