aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/4-statements/asm_float_literal.zc
blob: c4090e827eed262acecb48d31d3440a7c22497df (plain) (blame)
1
2
3
4
5
6
7
// expect: 1.500000/
// spec 4.13.1: a float literal emits flit and its bits
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() { word w = asm { 1.5 }; pf(w); return 0; }