From 6b224c3d53920effdc8cff5846cfc49b4a358a19 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Fri, 2 Apr 2021 21:47:15 +0200 Subject: Memory allocation is now an instruction. --- data/unit-testing/allocate_and_free.fate | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 data/unit-testing/allocate_and_free.fate (limited to 'data') diff --git a/data/unit-testing/allocate_and_free.fate b/data/unit-testing/allocate_and_free.fate new file mode 100644 index 0000000..56c7d6b --- /dev/null +++ b/data/unit-testing/allocate_and_free.fate @@ -0,0 +1,15 @@ +(fate_version 1) + +(local (ptr int) p0) +(allocate p0) +(set (at p0) 72) + +(assert (= (at p0) 72) + [FAILED] Test 0 +) + +(free (at p0)) + +[COMPLETED] + +(end) -- cgit v1.2.3-70-g09d2