From 2f59e052e5272bb2833c91c84b89486bd1b5f592 Mon Sep 17 00:00:00 2001 From: bd-912 Date: Fri, 19 Apr 2024 17:30:41 -0600 Subject: Create 'Kettle' class --- vaporize/tests/ex32.vaporm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 vaporize/tests/ex32.vaporm (limited to 'vaporize/tests/ex32.vaporm') diff --git a/vaporize/tests/ex32.vaporm b/vaporize/tests/ex32.vaporm new file mode 100644 index 0000000..85ecf13 --- /dev/null +++ b/vaporize/tests/ex32.vaporm @@ -0,0 +1,22 @@ +func Main [in 0, out 0, local 0] + $t0 = HeapAllocZ(4) + [$t0] = :functable_A + $t1 = [$t0] + $t2 = [$t1] + $a0 = $t0 + $a1 = 12 + call $t2 + $t1 = $v0 + PrintIntS($t1) + ret + +const functable_A + :A_foo + +func A_foo [in 0, out 0, local 1] + local[0] = $s0 + $t0 = $a0 + $s0 = $a1 + $v0 = $s0 + $s0 = local[0] + ret -- cgit v1.2.3