blob: 290263fcd8a43b63a93d2fd3027f3ba1adb775c5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// expect: -2/3.000000/1/0/
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() {
float f = -2.9;
int i = 3;
pn((int)f);
pf((float)i);
word w = 4607182418800017408;
pn(w as float == 1.0);
pn((3 as float) == 3.0);
return 0;
}
// zc0: skip
|