From f5dc9ad48db4d22e7d6f15e340063dc7cb14c1e1 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 29 Sep 2019 23:47:52 +0200 Subject: Implicit cast from str to ?&c_char, fix use of parameters (to use sys v registers) --- tests/bytecode.amal | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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!"); } -- cgit v1.2.3