blob: 87f2c722f84ef552dfd222b13c4e7d05f65e9a47 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// expect: 2.500000/2.500000/2.500000/2.500000/
include rt;
fn pf(x) { asm { x @ #1220 } rt.put_c(10); return 0; }
struct box { float v; }
float g;
float half(float x) { return x / 2; }
float getg() { return g; }
fn main() {
float a = 5;
pf(a / 2);
box* b = rt.new(box);
b.v = 5;
pf(b.v / 2);
pf(half(5));
g = 5;
pf(getg() / 2);
rt.free(b);
return 0;
}
// zc0: skip
|