From fa03e7d230f2625c384ca9a7c314b6d05ab44e70 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 2 Oct 2019 01:06:47 +0200 Subject: Switch signed<->unsigned asm instructions for logical op --- tests/binop.amal | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/binop.amal (limited to 'tests/binop.amal') diff --git a/tests/binop.amal b/tests/binop.amal new file mode 100644 index 0000000..1ec826d --- /dev/null +++ b/tests/binop.amal @@ -0,0 +1,14 @@ +extern const printf: fn(fmt: ?&c_char, ...) c_int; + +const main = fn { + 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