Stop using relative imports and add a go.mod file. Tested against Go 1.6 through Go pre-1.13, and gccgo.
13 lines
284 B
Go
13 lines
284 B
Go
package main
|
|
|
|
import . "cpp_static"
|
|
|
|
func main() {
|
|
StaticFunctionTestStatic_func()
|
|
StaticFunctionTestStatic_func_2(1)
|
|
StaticFunctionTestStatic_func_3(1, 2)
|
|
SetStaticMemberTestStatic_int(10)
|
|
if GetStaticMemberTestStatic_int() != 10 {
|
|
panic(GetStaticMemberTestStatic_int())
|
|
}
|
|
}
|