aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/4-statements/decl_let_float_local.zc
blob: 118e6a9b76e2f43b1bddc02103cd3ec28720d9f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// expect: 0.750000/
// spec 4.1.2: a float local from a float initializer, so / is float division
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn pf(x) { asm { x @ #1220 } rt.put_c(10); return 0; }
fn main() {
	let f = 1.5;
	pf(f / 2);
	return 0;
}