blob: 4bc7a57f3269bdc4aa13f5c40d375cfac521f743 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
// expect: 2/105/
// spec 4.1.2: char* from a word-string literal
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() {
let s = "hi";
pn(rt.len_w(s)); pn(s[1]);
return 0;
}
|