about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-11-09 14:48:46 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-11-09 14:48:46 -0800
commit7637d1ac845d40015820a216cc8697178905e4ad (patch)
tree372bb93906428b12d116209d1e7ddfa8d2f28e9c
parent093de108e41c3cfe02740241a5918ba1349546ac (diff)
downloadmu-7637d1ac845d40015820a216cc8697178905e4ad.tar.gz
2411 - backfill test for 2400
-rw-r--r--058generic_container.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/058generic_container.cc b/058generic_container.cc
index 8da369f6..ddfb87c2 100644
--- a/058generic_container.cc
+++ b/058generic_container.cc
@@ -141,6 +141,17 @@ recipe main [
 +mem: storing 14 in location 2
 +mem: storing 15 in location 3
 
+:(scenario get_on_generic_container_3)
+container foo:_t [
+  x:_t
+  y:number
+]
+recipe main [
+  1:foo:address:point <- merge 34, 48  # unsafe
+  2:address:point <- get 1:foo:address:point, x:offset
+]
++mem: storing 34 in location 2
+
 :(before "End element_type Special-cases")
 if (contains_type_ingredient(element)) {
   if (!canonized_base.type->right)