aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/go/li_cdata_cpp_runme.go
blob: 5849c50d408e597d45fbc47bd14f5b557e53b55e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package main

import . "swigtests/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")
	}
}