aboutsummaryrefslogtreecommitdiff
path: root/tests/icon/regression/block_capture_boundary.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/icon/regression/block_capture_boundary.zc')
-rw-r--r--tests/icon/regression/block_capture_boundary.zc10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/icon/regression/block_capture_boundary.zc b/tests/icon/regression/block_capture_boundary.zc
new file mode 100644
index 0000000..29925c4
--- /dev/null
+++ b/tests/icon/regression/block_capture_boundary.zc
@@ -0,0 +1,10 @@
+include rt;
+include run;
+include icon;
+fn main() {
+ let q = run.tokens("{ return 1; } { return 2; } ;");
+ let p = run.tokens("$block:x ;"), replacement = run.tokens("{}");
+ let r = icon.rewrite(q, p, replacement);
+ rt.put_n(r[0]); rt.put_c(10);
+ return 0;
+}