summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'data/unit-testing/allocate_and_free.fate')
-rw-r--r--data/unit-testing/allocate_and_free.fate15
1 files changed, 15 insertions, 0 deletions
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)