aboutsummaryrefslogtreecommitdiff
path: root/tests/icon/reject/step_local_mutation.zc
blob: 6ef0a51d73ed0c54fc9b8c73b01cb38e4d4ec15c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
include rt;
include run;
include icon;
fn main() {
	let q = run.tokens("int n = 1; return n++;");
	let f = icon.begin(q);
	icon.step(f);
	rt.put_n(icon.step(f)); rt.put_c(' '); rt.put_n(icon.state(f)); rt.put_c(' '); rt.put_n(icon.local(f, "n")); rt.put_c(10);
	icon.close(d*f);
	return 0;
}