From 294777178f9203283364f3e672569becb4dd1e7c Mon Sep 17 00:00:00 2001 From: hachem Date: Sun, 30 Aug 2026 21:21:53 +0200 Subject: test: add automated docker testing for the whole test suite --- examples/arithmetic.hdass | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 examples/arithmetic.hdass (limited to 'examples/arithmetic.hdass') diff --git a/examples/arithmetic.hdass b/examples/arithmetic.hdass new file mode 100644 index 0000000..359653e --- /dev/null +++ b/examples/arithmetic.hdass @@ -0,0 +1,13 @@ +// Computes (5 + 3) * 2 - 1 = 15 and returns it as the exit status. +const SYS_EXIT = 60 + +proc main +{ + rdi = 5 + rdi += 3 + rdi *= 2 + rdi -= 1 + + rax = SYS_EXIT + syscall +} -- cgit v1.3