Commit b9574f46 authored by David Lazar's avatar David Lazar

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: default avatarIan Lance Taylor <iant@golang.org>
Reviewed-by: default avatarKeith Randall <khr@golang.org>
parent 3892d507
......@@ -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",
}
......
......@@ -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)
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment