aboutsummaryrefslogtreecommitdiff
path: root/tests/icon/reject/bind_function.zc
blob: 1348c9089c32419da216d4fa48a5132f901f01ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
include rt;
include run;
include icon;
int target() { return 1; }
fn main() {
	let q = run.tokens("return 0;"), frame = icon.begin(q);
	rt.put_n(icon.bind_global(frame, "target")); rt.put_c(' '); rt.put_n(icon.error()); rt.put_c(10);
	icon.close(d*frame);
	return 0;
}