mirror of
https://github.com/golang/go
synced 2024-11-26 16:57:14 -07:00
cmd/link: fix TestConsistentGoKindAndRuntimeType
Fixes TestConsistentGoKindAndRuntimeType broken by b89ad46
, go.dev/cl/558275
Change-Id: Ia07a1bae3c74a1196f1d3f97136dc24a0b795fb7
Reviewed-on: https://go-review.googlesource.com/c/go/+/559575
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
This commit is contained in:
parent
702d609a31
commit
e39024e920
@ -2052,6 +2052,10 @@ func TestConsistentGoKindAndRuntimeType(t *testing.T) {
|
||||
if !hasRT || rtt == 0 {
|
||||
continue
|
||||
}
|
||||
// ... except unsafe.Pointer...
|
||||
if name, _ := die.Val(intdwarf.DW_AT_name).(string); name == "unsafe.Pointer" {
|
||||
continue
|
||||
}
|
||||
typesChecked++
|
||||
// ... we want to see a meaningful DW_AT_go_kind value.
|
||||
if val, ok := die.Val(intdwarf.DW_AT_go_kind).(int64); !ok || val == 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user