Stop using relative imports and add a go.mod file. Tested against Go 1.6 through Go pre-1.13, and gccgo.
17 lines
248 B
Go
17 lines
248 B
Go
// This is the import runtime testcase.
|
|
|
|
package main
|
|
|
|
import "swigtests/imports_b"
|
|
import "swigtests/imports_a"
|
|
|
|
func main() {
|
|
x := imports_b.NewB()
|
|
x.Hello()
|
|
|
|
_ = imports_a.NewA()
|
|
|
|
c := imports_b.NewC()
|
|
_ = c.Get_a(c)
|
|
_ = c.Get_a_type(c)
|
|
}
|