mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: c'str' now has type charptr
This commit is contained in:

committed by
Alexander Medvednikov

parent
d8bf0df7e9
commit
9a6711fa1b
9
vlib/compiler/tests/cstrings_test.v
Normal file
9
vlib/compiler/tests/cstrings_test.v
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
fn C.puts(charptr) int
|
||||
|
||||
fn test_cstring(){
|
||||
h := c'world'
|
||||
C.puts(c'hello')
|
||||
C.puts(h)
|
||||
assert true
|
||||
}
|
Reference in New Issue
Block a user