about summary refs log tree commit diff stats
path: root/076continuation.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-11-05 01:49:24 -0800
committerKartik K. Agaram <vc@akkartik.com>2017-11-05 01:49:24 -0800
commit53de40aa88c91150f513852e49b314f130663b64 (patch)
tree5a6582043f483f4d5fad6b953144c3c7dffcd8b9 /076continuation.cc
parent4c5136859dce2bc752e60b450f64c62ee7e66815 (diff)
downloadmu-53de40aa88c91150f513852e49b314f130663b64.tar.gz
4108
Diffstat (limited to '076continuation.cc')
-rw-r--r--076continuation.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/076continuation.cc b/076continuation.cc
index d190f9e3..1134d1d3 100644
--- a/076continuation.cc
+++ b/076continuation.cc
@@ -237,7 +237,7 @@ def f [
 def g [
   local-scope
   return-continuation-until-mark
-  a:num <- copy 35
+  add 1, 1
 ]
 # entering main
 +mem: new alloc: 1000
@@ -251,6 +251,7 @@ def g [
 # no allocs abandoned yet
 # finish running main
 +run: call {k: "continuation"}
++run: add {1: "literal"}, {1: "literal"}
 +run: return {34: "literal"}
 # now k is reclaimed
 +mem: trying to reclaim local k:continuation