aboutsummaryrefslogtreecommitdiff
path: root/tests/icon/regression/preserve_const.zc
blob: 4824413acf6934bdb7b73c9d8a54acaf43843b46 (plain) (blame)
1
2
3
4
5
6
7
8
9
include rt;
include run;
include icon;
fn main() {
	let q = run.tokens("const int total = 3;"), type = run.tokens("i32");
	let edited = icon.change_type(q, "total", type);
	rt.put_n(edited[2] == run.intern("const")); rt.put_c(' '); rt.put_n(edited[5] == run.intern("i32")); rt.put_c(10);
	return 0;
}