aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/1-source/lit_str_zero_terminated.zc
blob: 846294a21552d98c2322b9b0d49d1384d0b51cd0 (plain) (blame)
1
2
3
4
5
// expect: 3/0/
// spec 1.4.4: stored one per word, followed by a 0 word
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() { char* s = "abc"; pn(rt.len_w(s)); pn(s[3]); return 0; }