aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/1-source/lit_bstr_escape_and_len.zc
blob: 33b3c11e30c9ffa1b69ea05a8732f9858a984bf9 (plain) (blame)
1
2
3
4
5
// expect: 4/10/9/
// spec 1.4.5
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() { bstr t = b"a\n\tb"; pn(len(t)); pn(t[1]); pn(t[2]); return 0; }