aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/3-expressions/ptr_deref_struct_is_address.zc
blob: f495fc525f35dfd78daa0a6b0dc1d7a4193312d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
// expect: 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, 4);
	pn((int)(*(p + 2)) == (int)(p + 2));
	rt.free(p);
	return 0;
}
// zc0: skip