aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/3-expressions/cast_forms.zc
blob: d8ef2bf5c17e3db7953c0108a9231ad856afa30d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// expect: 2/3/44/3/
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() {
	float f = 2.9;
	pn((int)f);
	char* s = "abc";
	pn(rt.len_w((char*)s));
	pn((u8)300);
	int myv = 3;
	pn((myv));
	return 0;
}
// zc0: skip