mirror of
https://github.com/golang/go
synced 2024-11-24 07:30:10 -07:00
cmd/objdump: make test independent of inlining
Fixes #19189. Change-Id: Ice69216c7fc2eaeb3dbbdcd08a8284204c7f52ef Reviewed-on: https://go-review.googlesource.com/37237 Run-TryBot: David Lazar <lazard@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
3892d50796
commit
b9574f46f9
@ -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",
|
||||
}
|
||||
|
||||
|
7
src/cmd/objdump/testdata/fmthello.go
vendored
7
src/cmd/objdump/testdata/fmthello.go
vendored
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user