aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/1-source/lit_str_empty.zc
blob: ef388be6c28b17dae2ce4fc75abd53bc21cf6f76 (plain) (blame)
1
2
3
4
5
// expect: 0/0/
// spec 1.4.4
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() { char* s = ""; pn(rt.len_w(s)); pn(s[0]); return 0; }