diff options
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 |