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.vapor | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 vaporize/tests/ex32.vapor (limited to 'vaporize/tests/ex32.vapor') diff --git a/vaporize/tests/ex32.vapor b/vaporize/tests/ex32.vapor new file mode 100644 index 0000000..8a8dc62 --- /dev/null +++ b/vaporize/tests/ex32.vapor @@ -0,0 +1,15 @@ +func Main() + t.3 = HeapAllocZ(4) + [t.3+0] = :functable_A + t.4 = [t.3+0] + t.5 = [t.4+0] + t.6 = 12 + t.10 = call t.5(t.3 t.6) + PrintIntS(t.10) + ret + +const functable_A + :A_foo + +func A_foo(this t.1) + ret t.1 -- cgit v1.2.3