blob: 5c673dbbf2ea8565947e511e029375247015766e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// expect: -1.500000/0/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 = 1.5;
pf(-f);
float z = -0.0;
pn(z as int);
float y = 0.0;
float ny = -y;
pn(ny as int);
return 0;
}
|