aboutsummaryrefslogtreecommitdiff
path: root/tests/icon/accept/step.zc
blob: d394e1e7d913584fcc210ba64958a7ae5b4ea335 (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 = 4; n = n * 3; return n + bias;");
	let frame = icon.begin(q);
	icon.set_global(frame, "bias", 2);
	icon.step(frame); rt.put_n(icon.local(frame, "n")); rt.put_c(' ');
	icon.step(frame); rt.put_n(icon.local(frame, "n")); rt.put_c(' ');
	icon.step(frame); rt.put_n(icon.result(frame)); rt.put_c(10);
	return 0;
}