summaryrefslogtreecommitdiff
path: root/tests/fulladder.mj
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fulladder.mj')
-rw-r--r--tests/fulladder.mj4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/fulladder.mj b/tests/fulladder.mj
new file mode 100644
index 0000000..c4b6b0e
--- /dev/null
+++ b/tests/fulladder.mj
@@ -0,0 +1,4 @@
+main(a,b,c) = (s, r) where
+ s = (a xor b) xor c;
+ r = (a and b) or ((a xor b) and c);
+end where \ No newline at end of file