swig/Examples/test-suite/go/naturalvar_runme.go
Ian Lance Taylor 7aafe3d8b2 Fix all Go tests to build with "go build"
Tested against Go 1.6 through Go 1.13beta1, and gccgo.

Fixes #1607
2019-08-08 14:30:50 -07:00

17 lines
178 B
Go

package main
import . "swigtests/naturalvar"
func main() {
f := NewFoo()
b := NewBar()
b.SetF(f)
SetS("hello")
b.SetS("hello")
if b.GetS() != GetS() {
panic(0)
}
}