Closed pkujhd closed 4 years ago
testcase:
package main import ( "fmt" ) func LoaderString(value interface{}) bool { fmt.Println("LoaderString:", fmt.Sprint(value)) return false } func main() { LoaderString(0) }
result:
pkujhd@pkujhd goloader % ./loader -o test.o LoaderString: 2339095698830926629
golang compile do not allocate memory in objfile when a static variable is equal 0
testcase:
result: