From b124548bcee1ab6d034d4499fe695073566ae37d Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 2 Oct 2019 01:00:59 +0200 Subject: Add !=,<,<=,>,>=; both signed and not --- tests/bytecode.amal | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/bytecode.amal b/tests/bytecode.amal index 35dc3da..5ba26ed 100644 --- a/tests/bytecode.amal +++ b/tests/bytecode.amal @@ -1,5 +1,14 @@ -const io = @import("../std/io.amal"); +extern const printf: fn(fmt: ?&c_char, ...) c_int; const main = fn { - io.print("hello %s", "world!"); -} + var value = 23 + 50; + if value < 23 + printf("less!\n"); + else + printf("more!\n"); + + while value > 0 { + printf("value: %ld\n", value); + value = value - 1; + } +} \ No newline at end of file -- cgit v1.2.3