aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/1-source/lit_bstr_nul_truncates.zc
blob: fbf152257788254070c363fecdffa40233b04a3e (plain) (blame)
1
2
3
4
// expect: 3/
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() { bstr t = b"hi\n\0x"; pn(len(t)); return 0; }