1
0
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:
Delyan Angelov
2019-12-04 12:34:06 +02:00
committed by Alexander Medvednikov
parent d8bf0df7e9
commit 9a6711fa1b
2 changed files with 15 additions and 1 deletions

View 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
}