Add support for the Go programming language.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12108 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
09f14197ac
commit
5af2978f77
259 changed files with 16159 additions and 14 deletions
29
Examples/test-suite/go/multi_import_runme.go
Normal file
29
Examples/test-suite/go/multi_import_runme.go
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
package main
|
||||
|
||||
import "multi_import_a"
|
||||
import "multi_import_b"
|
||||
|
||||
func main() {
|
||||
x := multi_import_b.NewXXX()
|
||||
if x.Testx() != 0 {
|
||||
panic(0)
|
||||
}
|
||||
|
||||
y := multi_import_b.NewYYY()
|
||||
if y.Testx() != 0 {
|
||||
panic(0)
|
||||
}
|
||||
if y.Testy() != 1 {
|
||||
panic(0)
|
||||
}
|
||||
|
||||
z := multi_import_a.NewZZZ()
|
||||
if z.Testx() != 0 {
|
||||
println("z.Testx", z.Testx(), z.Testz())
|
||||
panic(0)
|
||||
}
|
||||
if z.Testz() != 2 {
|
||||
println("z.Testz", z.Testz())
|
||||
panic(0)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue