From c112289ee4141ebc31db50328c355b01278b987b Mon Sep 17 00:00:00 2001 From: David Chase Date: Fri, 17 Jan 2020 12:03:55 -0500 Subject: cmd/compile: change the "bogus line" to be 1 The previous value was "too bogus" and caused objdump to crash. Updated infinite loop test results (only run if -args -f) in ssa/debug_test.go Probably also fixes #36621 but that bug needs more info to tell for certain. Fixes #36570 Change-Id: I51144641d25d559308a98d726d87806bd340cc5a Reviewed-on: https://go-review.googlesource.com/c/go/+/215297 Run-TryBot: David Chase TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor Reviewed-by: Cherry Zhang --- src/cmd/objdump/testdata/fmthello.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/cmd/objdump/testdata') diff --git a/src/cmd/objdump/testdata/fmthello.go b/src/cmd/objdump/testdata/fmthello.go index e98268199d..fd16ebee1b 100644 --- a/src/cmd/objdump/testdata/fmthello.go +++ b/src/cmd/objdump/testdata/fmthello.go @@ -4,9 +4,15 @@ import "fmt" func main() { Println("hello, world") + if flag { + for { + } + } } //go:noinline func Println(s string) { fmt.Println(s) } + +var flag bool -- cgit v1.3