diff --git a/src/cmd/objdump/objdump_test.go b/src/cmd/objdump/objdump_test.go index 10fc7164637..419be6717aa 100644 --- a/src/cmd/objdump/objdump_test.go +++ b/src/cmd/objdump/objdump_test.go @@ -60,7 +60,7 @@ var x86Need = []string{ "fmthello.go:6", "TEXT main.main(SB)", "JMP main.main(SB)", - "CALL fmt.Println(SB)", + "CALL main.Println(SB)", "RET", } @@ -68,7 +68,7 @@ var armNeed = []string{ "fmthello.go:6", "TEXT main.main(SB)", //"B.LS main.main(SB)", // TODO(rsc): restore; golang.org/issue/9021 - "BL fmt.Println(SB)", + "BL main.Println(SB)", "RET", } @@ -76,7 +76,7 @@ var ppcNeed = []string{ "fmthello.go:6", "TEXT main.main(SB)", "BR main.main(SB)", - "CALL fmt.Println(SB)", + "CALL main.Println(SB)", "RET", } diff --git a/src/cmd/objdump/testdata/fmthello.go b/src/cmd/objdump/testdata/fmthello.go index 635db7ae6c1..e98268199d8 100644 --- a/src/cmd/objdump/testdata/fmthello.go +++ b/src/cmd/objdump/testdata/fmthello.go @@ -3,5 +3,10 @@ package main import "fmt" func main() { - fmt.Println("hello, world") + Println("hello, world") +} + +//go:noinline +func Println(s string) { + fmt.Println(s) }