aboutsummaryrefslogtreecommitdiffhomepage
path: root/testdata/cgo/out.txt
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2021-11-11 16:11:08 +0100
committerRon Evans <[email protected]>2021-11-24 21:09:29 +0100
commitc31aef06ba131051cba4a18f336eb7d820faa4e7 (patch)
tree219fe13aa3b09f331195686d664b58d0b64a52b8 /testdata/cgo/out.txt
parent6bd18af5ef02eddb8507cdbe40ffbe8d594af910 (diff)
downloadtinygo-c31aef06ba131051cba4a18f336eb7d820faa4e7.tar.gz
tinygo-c31aef06ba131051cba4a18f336eb7d820faa4e7.zip
cgo: add support for C.CString and related functions
Diffstat (limited to 'testdata/cgo/out.txt')
-rw-r--r--testdata/cgo/out.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/testdata/cgo/out.txt b/testdata/cgo/out.txt
index ca77594f5..375ad1f6f 100644
--- a/testdata/cgo/out.txt
+++ b/testdata/cgo/out.txt
@@ -61,5 +61,12 @@ option 2A: 20
option 3A: 21
enum width matches: true
CFLAGS value: 17
+cstr length: 18
+C.CString: string passed to C
+C.charBuf: 2 0 4 8
+C.CStringN: 4 2 0 4 8
+C.GoString(nil):
+len(C.GoStringN(nil, 0)): 0
+len(C.GoBytes(nil, 0)): 0
copied string: foobar
line written using C puts