aboutsummaryrefslogtreecommitdiff
path: root/examples/working-compiler/coroutine2.test
diff options
context:
space:
mode:
Diffstat (limited to 'examples/working-compiler/coroutine2.test')
-rw-r--r--examples/working-compiler/coroutine2.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/working-compiler/coroutine2.test b/examples/working-compiler/coroutine2.test
new file mode 100644
index 0000000..5ca0d3f
--- /dev/null
+++ b/examples/working-compiler/coroutine2.test
@@ -0,0 +1,14 @@
+0 ==?cr
+0 ==main
+
+{ =cr
+ 1 =main
+ "main routine" dump
+} {
+ ==caller
+ 0 =main
+ "coroutine" dump
+} !!'
+
+"afterwards" dump # mind = blown
+main { cr 0 ! } rep