aboutsummaryrefslogtreecommitdiff
path: root/tests/icon/regression/block_capture_boundary.zc
blob: 29925c4f8379869510f6a6751cef5ec6b4ac1e90 (plain) (blame)
1
2
3
4
5
6
7
8
9
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;
}