diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-09-17 00:46:03 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-09-17 00:46:03 -0700 |
commit | d52406ccd9eb19be40b85a3a2a1b00e5052afb9b (patch) | |
tree | 18936281f60f84ea1ceb024b1b1580d376f765c6 /037abandon.cc | |
parent | 192d59d3bb9ee0baa1afd82cb5d0f352bdc6e403 (diff) | |
download | mu-d52406ccd9eb19be40b85a3a2a1b00e5052afb9b.tar.gz |
3381
Diffstat (limited to '037abandon.cc')
-rw-r--r-- | 037abandon.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/037abandon.cc b/037abandon.cc index ea872e2f..c6e7607f 100644 --- a/037abandon.cc +++ b/037abandon.cc @@ -8,7 +8,7 @@ def main [ 1:address:num <- copy 0 # abandon 3:address:num <- new number:type # must be same size as abandoned memory to reuse 4:num <- copy 3:address:num - 5:boolean <- equal 2:num, 4:num + 5:bool <- equal 2:num, 4:num ] # both allocations should have returned the same address +mem: storing 1 in location 5 @@ -80,7 +80,7 @@ def main [ 1:address:num <- copy 0 # abandon 3:address:array:num <- new number:type, 2 # different size 4:num <- copy 3:address:array:num - 5:boolean <- equal 2:num, 4:num + 5:bool <- equal 2:num, 4:num ] # no reuse +mem: storing 0 in location 5 @@ -92,7 +92,7 @@ def main [ 1:address:array:num <- copy 0 # abandon 3:address:array:num <- new number:type, 2 # same size 4:num <- copy 3:address:array:num - 5:boolean <- equal 2:num, 4:num + 5:bool <- equal 2:num, 4:num ] # both calls to new returned identical addresses +mem: storing 1 in location 5 |