packagemainimport("fmt""os")functest(){pwd,err:=os.Getwd()iferr!=nil{fmt.Println(err)os.Exit(1)}fmt.Println(pwd)}funcmain(){growstack()// Use stack early to prevent growth during test, which confuses gdbtest()}varsnkstring//go:noinlinefuncgrowstack(){snk=fmt.Sprintf("%#v,%#v,%#v",1,true,"cat")}