Sign in
fuchsia
/
third_party
/
swig
/
34ee191769e885fefa380d4e7c09c17f3d103ae6
/
.
/
Examples
/
test-suite
/
go
/
li_cdata_cpp_runme.go
blob: 42a0ebd0829a9bdb79380aae10d2c5972a8ef5b7 [
file
] [
log
] [
blame
]
package main
import . "./li_cdata_cpp"
func main() {
s := "ABC abc"
m := Malloc(256)
Memmove(m, s, len(s))
ss := Cdata(m, 7)
if string(ss) != "ABC abc" {
panic("failed")
}
}