aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/1-source/lit_bstr_basic.zc
blob: 3157bd195937c0e49653e46b9cb1f06d2e91ade2 (plain) (blame)
1
2
3
4
5
6
7
8
9
// expect: 5/el/
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() {
	let t = b"hello";
	pn(len(t));
	rt.put_s(t[1:3]); rt.put_c(10);
	return 0;
}