aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-09-29 23:47:52 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:36:46 +0200
commitf5dc9ad48db4d22e7d6f15e340063dc7cb14c1e1 (patch)
tree4465a81a77e936dc2ed6ecd90183ba6af9cc2dae /tests
parentc811a743a1528db1d05970e1aa14162ef7c70b75 (diff)
Implicit cast from str to ?&c_char, fix use of parameters (to use sys v registers)
Diffstat (limited to 'tests')
-rw-r--r--tests/bytecode.amal4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/bytecode.amal b/tests/bytecode.amal
index d27a240..35dc3da 100644
--- a/tests/bytecode.amal
+++ b/tests/bytecode.amal
@@ -1,5 +1,5 @@
-extern const printf: fn(fmt: ?*c_char, ...) c_int;
+const io = @import("../std/io.amal");
const main = fn {
- printf("hello, world!\n");
+ io.print("hello %s", "world!");
}