v/vlib/v/checker/tests/unsafe_c_calls_should_be_ch...

7 lines
84 B
V

fn test_c() {
mut p := C.malloc(4)
s := 'hope'
C.memcpy(p, s.str, 4)
}