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