git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12108 626c5289-ae23-0410-ae9c-e8d60b6d4f22
20 lines
210 B
Go
20 lines
210 B
Go
package main
|
|
|
|
import . "./smart_pointer_rename"
|
|
|
|
func main() {
|
|
f := NewFoo()
|
|
b := NewBar(f)
|
|
|
|
if b.Test() != 3 {
|
|
panic(0)
|
|
}
|
|
|
|
if b.Ftest1(1) != 1 {
|
|
panic(0)
|
|
}
|
|
|
|
if b.Ftest2(2, 3) != 2 {
|
|
panic(0)
|
|
}
|
|
}
|