v/vlib/compiler/tests/cstrings_test.v

9 lines
129 B
V

fn test_cstring(){
w := c'world'
hlen := C.strlen(c'hello')
wlen := C.strlen(w)
assert hlen == 5
assert wlen == 5
}