
The compiler a variable 'v' that escapes to the heap with a '&v' entry. Auto dereference those local variables. Fixe #871
14 lines
156 B
Go
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
|
|
}
|