aboutsummaryrefslogtreecommitdiff
path: root/tests/icon/regression/repeated_publication.zc
blob: b8f4268836ecfd9a068c941ae463f98a2711730e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
include rt;
include run;
include icon;
int target() { return 7; }
fn main() {
	let first = run.tokens("7"), second = run.tokens("8"), third = run.tokens("9");
	rt.put_n(icon.find_replace(target, first, second)); rt.put_c(' '); rt.put_n(target()); rt.put_c(' ');
	rt.put_n(icon.find_replace(target, second, third)); rt.put_c(' '); rt.put_n(target()); rt.put_c(10);
	return 0;
}