diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-06-07 10:47:47 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-25 14:36:46 +0200 |
commit | 53a331bc8b2fc33bd2b7e25a23b4128f89ee0b52 (patch) | |
tree | 2e5c0f4cda85b2afdb6142145fa7ded61d100f02 /tests/errors | |
parent | 1b68fdcf5aebf2bc53bbd9234c77aea243c0decd (diff) |
Add assignment, while, extern, function signature type, start on bytecode
Diffstat (limited to 'tests/errors')
-rw-r--r-- | tests/errors/const_assign.amal | 4 | ||||
-rw-r--r-- | tests/errors/const_assign.amal.z | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/errors/const_assign.amal b/tests/errors/const_assign.amal new file mode 100644 index 0000000..b0b0ec4 --- /dev/null +++ b/tests/errors/const_assign.amal @@ -0,0 +1,4 @@ +const main = fn { + const value = 23; + value = 34; +}
\ No newline at end of file diff --git a/tests/errors/const_assign.amal.z b/tests/errors/const_assign.amal.z new file mode 100644 index 0000000..99b1210 --- /dev/null +++ b/tests/errors/const_assign.amal.z @@ -0,0 +1,6 @@ +FUNC_START 0 +mov r0, i0 +mov r1, r0 +mov r2, i1 +mov r1, r2 +FUNC_END |