delve/_fixtures/issue871.go
aarzilli 731829c349 proc: auto-dereference local variables that escape to the heap
The compiler a variable 'v' that escapes to the heap with a '&v' entry.
Auto dereference those local variables.

Fixe #871
2017-08-01 11:20:25 -06:00

14 lines
156 B
Go

package main
import (
"fmt"
"runtime"
)
func main() {
a := [3]int{1, 2, 3}
b := &a
runtime.Breakpoint()
fmt.Println(b, *b) // set breakpoint here
}