about summary refs log tree commit diff stats
path: root/056recipe_header.cc
diff options
context:
space:
mode:
Diffstat (limited to '056recipe_header.cc')
-rw-r--r--056recipe_header.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/056recipe_header.cc b/056recipe_header.cc
index ddb2ccd1..cad74e5d 100644
--- a/056recipe_header.cc
+++ b/056recipe_header.cc
@@ -199,6 +199,20 @@ if (curr.name == "reply" && curr.ingredients.empty()) {
   }
 }
 
+:(scenario explicit_reply_ignores_header)
+recipe main [
+  1:number/raw, 2:number/raw <- add2 3, 5
+]
+recipe add2 a:number, b:number -> y:number, z:number [
+  local-scope
+  load-ingredients
+  y <- add a, b
+  z <- subtract a, b
+  reply a, z
+]
++mem: storing 3 in location 1
++mem: storing -2 in location 2
+
 :(scenario reply_on_fallthrough_based_on_header)
 recipe main [
   1:number/raw <- add2 3, 5