blob: 6b869f672a682b34d11e67a79ded9d300990ee7a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// expect: 5/1/
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
struct point { int x; int y; }
fn main() {
point* p = rt.new(point, 3);
p[1].x = 5;
int* q = (int*)p;
pn(q[2]);
pn((int)(p + 1) - (int)p);
rt.free(p);
return 0;
}
// zc0: skip
|