delve/_fixtures/issue1817.go
aarzilli 0e0d689246 dwarf/line: make LineToPCIn behave like LineToPC for lines without stmt
When a line has instructions associated but none of them have is_stmt
set LineToPC and LineToPCIn should behave in the same way.

Fixes #1817
2020-01-09 09:41:44 -08:00

24 lines
255 B
Go

package main
import (
"fmt"
"runtime"
"unsafe"
)
func main() {
l := int(51)
bs := make([]byte, l)
for i := 0; i < l; i++ {
bs[i] = byte(i + int(10))
}
p := uintptr(unsafe.Pointer(&bs))
fmt.Println(p)
bs[0] = 254
runtime.KeepAlive(bs)
}