| summaryrefslogtreecommitdiff |
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2021-04-02 21:47:15 +0200 |
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2021-04-02 21:47:15 +0200 |
| commit | 6b224c3d53920effdc8cff5846cfc49b4a358a19 (patch) | |
| tree | 24b7310d38bbce4388d10ff7358b98a76e8272c5 /data | |
| parent | 11daf8c58b8a0dd4f4c9babe2660d3779a04465a (diff) | |
Memory allocation is now an instruction.
Diffstat (limited to 'data')
| -rw-r--r-- | data/unit-testing/allocate_and_free.fate | 15 |
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) |


