aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/1-source/lit_bstr_cast_to_int_pointer.zc
blob: 8959ca316925799fd7aac644e1690c978d422ca2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// expect: 2/16961/
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() {
	bstr t = b"AB";
	int* w = (int*)t;
	pn(w[0]); pn(w[1]);
	return 0;
}
// zc0: skip