diff options
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 [ |