diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-06-19 12:28:36 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-06-19 12:28:36 -0700 |
commit | 8fb0e672c2f5431141d58128f623d1cc02d67bb8 (patch) | |
tree | a12ea4a27d24fa537123d71127ba24b5be1e8728 /042new.cc | |
parent | 2a2dc5cf6837871737c0b0d3c5e46a1152ae1d13 (diff) | |
download | mu-8fb0e672c2f5431141d58128f623d1cc02d67bb8.tar.gz |
1597 - port more helpers from arc version
Diffstat (limited to '042new.cc')
-rw-r--r-- | 042new.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/042new.cc b/042new.cc index 04ac80f7..7b4054ec 100644 --- a/042new.cc +++ b/042new.cc @@ -130,6 +130,16 @@ recipe main [ # don't forget the extra location for array size +mem: storing 6 in location 3 +:(scenario new_empty_array) +recipe main [ + 1:address:array:number/raw <- new number:type, 0:literal + 2:address:number/raw <- new number:type + 3:number/raw <- subtract 2:address:number/raw, 1:address:array:number/raw +] ++run: 1:address:array:number/raw <- new number:type, 0:literal ++mem: array size is 0 ++mem: storing 1 in location 3 + //: Make sure that each routine gets a different alloc to start. :(scenario new_concurrent) recipe f1 [ |