about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-11-09 23:26:15 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-11-09 23:33:09 -0800
commitd07aff341dbeb45188683848609a6c7e5d309aa2 (patch)
tree454605e23307ad0f734545cce6b3c7c22b229efb
parente39c574c21b312dbda019a59392329b3bfbcf56b (diff)
downloadmu-d07aff341dbeb45188683848609a6c7e5d309aa2.tar.gz
2415 - backfill test for 2396
This is the last one I can think of.
-rw-r--r--059generic_recipe.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/059generic_recipe.cc b/059generic_recipe.cc
index c2789297..add37757 100644
--- a/059generic_recipe.cc
+++ b/059generic_recipe.cc
@@ -409,3 +409,18 @@ container foo:_t [
 +mem: storing 0 in location 11
 +mem: storing 0 in location 12
 +mem: storing 0 in location 13
+
+:(scenario generic_recipe_supports_compound_types)
+recipe main [
+  1:address:point <- new point:type
+  2:address:number <- get-address *1:address:point, y:offset
+  *2:address:number <- copy 34
+  3:address:point <- bar 1:address:point  # specialize _t to address:point
+  4:point <- copy *3:address:point
+]
+recipe bar a:_t -> result:_t [
+  local-scope
+  load-ingredients
+  result <- copy a
+]
++mem: storing 34 in location 5