v/vlib/v/checker/tests/warnings_for_string_c2v_cal...

12 lines
150 B
V

fn main() {
mut p := vcalloc(20)
unsafe {
p[0] = `A`
p[1] = `B`
p[2] = `z`
}
x := string(p)
eprintln('x: $x')
eprintln('x.len: $x.len')
}