diff options
author | David Chase <drchase@google.com> | 2020-01-17 12:03:55 -0500 |
---|---|---|
committer | David Chase <drchase@google.com> | 2020-01-17 23:14:48 +0000 |
commit | c112289ee4141ebc31db50328c355b01278b987b (patch) | |
tree | 4dd6f258129a4c09e2ea63270b5dbf1826c519a5 /src/cmd/objdump | |
parent | 316fd8cc4a7fab2e1bb45848bc30ea8b8a0b231a (diff) | |
download | go-c112289ee4141ebc31db50328c355b01278b987b.tar.gz go-c112289ee4141ebc31db50328c355b01278b987b.zip |
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 <drchase@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/cmd/objdump')
-rw-r--r-- | src/cmd/objdump/testdata/fmthello.go | 6 |
1 files changed, 6 insertions, 0 deletions
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 |