go i22600 源码

  • 2022-07-15
  • 浏览 (1231)

golang i22600 代码

文件路径:/src/cmd/compile/internal/ssa/testdata/i22600.go

package main

import (
	"fmt"
	"os"
)

func test() {
	pwd, err := os.Getwd()
	if err != nil {
		fmt.Println(err)
		os.Exit(1)
	}
	fmt.Println(pwd)
}

func main() {
	growstack() // Use stack early to prevent growth during test, which confuses gdb
	test()
}

var snk string

//go:noinline
func growstack() {
	snk = fmt.Sprintf("%#v,%#v,%#v", 1, true, "cat")
}

相关信息

go 源码目录

相关文章

go convertline 源码

go hist 源码

go i22558 源码

go infloop 源码

go inline-dump 源码

go pushback 源码

go sayhi 源码

go scopes 源码

0  赞