diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-09-29 23:47:52 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-25 14:36:46 +0200 |
commit | f5dc9ad48db4d22e7d6f15e340063dc7cb14c1e1 (patch) | |
tree | 4465a81a77e936dc2ed6ecd90183ba6af9cc2dae /tests | |
parent | c811a743a1528db1d05970e1aa14162ef7c70b75 (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.amal | 4 |
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!"); } |