git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12108 626c5289-ae23-0410-ae9c-e8d60b6d4f22
22 lines
310 B
Go
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)
|
|
}
|