aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/stmtlines_test.go
diff options
context:
space:
mode:
authorClément Chigot <clement.chigot@atos.net>2018-10-23 15:15:37 +0200
committerBrad Fitzpatrick <bradfitz@golang.org>2018-10-26 15:01:35 +0000
commit64967ffe6d7e8a82c87db7c11f76117072e7aff7 (patch)
tree3adb60cefd5c61b930aabe155d2175ac041d8df5 /src/cmd/compile/internal/ssa/stmtlines_test.go
parentdb9e15e68f24120922564365670c2bef6f6869e7 (diff)
downloadgo-64967ffe6d7e8a82c87db7c11f76117072e7aff7.tar.gz
go-64967ffe6d7e8a82c87db7c11f76117072e7aff7.zip
cmd/compile/internal/ssa: fix TestStmtLines for AIX
This commit adapts TestStmtLines for AIX operating system. Update #25893 Change-Id: I1c76bbd8fc679a66b65ecfbd1ed7745518064eae Reviewed-on: https://go-review.googlesource.com/c/144958 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/ssa/stmtlines_test.go')
-rw-r--r--src/cmd/compile/internal/ssa/stmtlines_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/ssa/stmtlines_test.go b/src/cmd/compile/internal/ssa/stmtlines_test.go
index c0fc7adab5..6fc0239ffe 100644
--- a/src/cmd/compile/internal/ssa/stmtlines_test.go
+++ b/src/cmd/compile/internal/ssa/stmtlines_test.go
@@ -1,6 +1,7 @@
package ssa_test
import (
+ "cmd/internal/xcoff"
"debug/dwarf"
"debug/elf"
"debug/macho"
@@ -25,6 +26,10 @@ func open(path string) (*dwarf.Data, error) {
return fh.DWARF()
}
+ if fh, err := xcoff.Open(path); err == nil {
+ return fh.DWARF()
+ }
+
return nil, fmt.Errorf("unrecognized executable format")
}