Fixed SWIG go for cases when SWIG %import-s another package which is located in a subdirectory.
This commit is contained in:
parent
ece9854e8f
commit
8da4d20308
9 changed files with 135 additions and 7 deletions
16
Examples/test-suite/go/go_subdir_import_runme.go
Normal file
16
Examples/test-suite/go/go_subdir_import_runme.go
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"go_subdir_import_a"
|
||||
"testdir/go_subdir_import/go_subdir_import_b"
|
||||
"testdir/go_subdir_import/go_subdir_import_c"
|
||||
)
|
||||
|
||||
func main() {
|
||||
b := go_subdir_import_b.NewObjB();
|
||||
c := go_subdir_import_c.NewObjC();
|
||||
v := go_subdir_import_a.AddFive(b, c)
|
||||
if v != 50 {
|
||||
panic(0)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue