aboutsummaryrefslogtreecommitdiff
path: root/tests/bytecode.amal
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-07-31 01:25:05 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:36:46 +0200
commit1f28c3c733ea3ae4234bff91e1c55e61b1ee3e96 (patch)
tree0ab52e362da03fde741ce8159ef8a4110cd1fb6a /tests/bytecode.amal
parentec1a48e7b86fcd00127dd5a88d56c42083af1d78 (diff)
Starting on asm, implementing extern function call so progress is visible
Diffstat (limited to 'tests/bytecode.amal')
-rw-r--r--tests/bytecode.amal12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/bytecode.amal b/tests/bytecode.amal
index c5b2cb3..3484b21 100644
--- a/tests/bytecode.amal
+++ b/tests/bytecode.amal
@@ -1,12 +1,14 @@
extern const printf: fn;
-const print = fn {
-
-}
-
const main = fn {
var value = 23;
value = 34;
+ const value2: i64 = 23;
+ const value3 = 2 + 5 - 1 * 10 / 2;
const str_value = "hello, world";
- print();
+ printf();
+}
+
+const print = fn {
+
} \ No newline at end of file