From 0aa6813b004c8003ff675f52850595bbcc2a66a9 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 5 Nov 2016 21:38:11 -0700 Subject: 3626 --- html/032array.cc.html | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'html/032array.cc.html') diff --git a/html/032array.cc.html b/html/032array.cc.html index 2a3d7b1b..d8264b08 100644 --- a/html/032array.cc.html +++ b/html/032array.cc.html @@ -342,6 +342,17 @@ type_tree* copy_array_element((array_length(x), 3); } +:(scenario index_truncates) +def main [ + 1:array:num:3 <- create-array + 2:num <- copy 14 + 3:num <- copy 15 + 4:num <- copy 16 + 5:num <- index 1:array:num:3, 1.5 # non-whole number +] +# fraction is truncated away ++mem: storing 15 in location 5 + :(scenario index_out_of_bounds) % Hide_errors = true; def main [ -- cgit 1.4.1-2-gfad0