aboutsummaryrefslogtreecommitdiff
path: root/tests/icon/accept/literal_replace.zc
blob: 70f7527c5f62ca8c71fb075933f75d2dfe6ab399 (plain) (blame)
1
2
3
4
5
6
7
8
9
include rt;
include run;
include icon;
int addition() { return 7 + 3; }
fn main() {
	let changed = icon.find_replace(addition, ${ $int + $int }, ${ $int - $int });
	rt.put_n(changed); rt.put_c(' '); rt.put_n(addition()); rt.put_c(10);
	return 0;
}