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.fate11
1 files changed, 6 insertions, 5 deletions
diff --git a/data/unit-testing/allocate_and_free.fate b/data/unit-testing/allocate_and_free.fate
index 56c7d6b..cf05414 100644
--- a/data/unit-testing/allocate_and_free.fate
+++ b/data/unit-testing/allocate_and_free.fate
@@ -1,15 +1,16 @@
(fate_version 1)
(local (ptr int) p0)
-(allocate p0)
-(set (at p0) 72)
-(assert (= (at p0) 72)
+(allocate! p0)
+(set! (at p0) 72)
+
+(assert! (= (at p0) 72)
[FAILED] Test 0
)
-(free (at p0))
+(free! (at p0))
[COMPLETED]
-(end)
+(end!)