swig/Examples/test-suite/go/smart_pointer_templatevariables_runme.go
2010-06-10 01:13:31 +00:00

22 lines
310 B
Go

package main
import . "./smart_pointer_templatevariables"
func main() {
d := NewDiffImContainerPtr_D(Create(1234, 5678))
if d.GetId() != 1234 {
panic(0)
}
//if (d.xyz != 5678):
// panic(0)
d.SetId(4321)
//d.xyz = 8765
if d.GetId() != 4321 {
panic(0)
}
//if (d.xyz != 8765):
// panic(0)
}