aboutsummaryrefslogtreecommitdiff
path: root/tests/icon/regression/inspect_modify_resume.zc
blob: b9bfad1d0be53aa95ab9ac3f1557005b826b5ed4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
include rt;
include run;
include icon;
fn main() {
	let q = run.tokens("int n = 1; while (n < 3) { n++; } return n;");
	let frame = icon.begin(q);
	icon.step(frame); icon.set_local(frame, "n", 8);
	icon.resume(frame, 5);
	rt.put_n(icon.result(frame)); rt.put_c(' '); rt.put_n(icon.steps(frame)); rt.put_c(10);
	icon.close(d*frame);
	return 0;
}