; sugar test template (import "host" "print" (func print (i i32))) (memory (export "mem") 1) (global some-array (mut i32) 0) (defun check-one (x i32) :result i32 (< x 100)) (defun check-other (x i32) :result i32 (zerop x)) (defun do-thing (a i32 b i32) :result i32 (print a) (print b) (+ a b)) (defun (export t1) () :result i32 (locals (i32 (a 1) (b 2) (c 3) (z 0))) (set* some-array #xcafebabe) TESTCASE )