delve/_fixtures/issue332.go
aarzilli b370e20cd5 proc: bugs setting next breakpoints
1. A running goroutine is by definition not parked waiting for a
chan recv
2. The FDE end address is intended to be exclusive, the code
interpreted as inclusive and sometimes ended up setting a breakpoint
on a function other than the current one.
2016-02-11 08:28:07 +01:00

16 lines
206 B
Go

package main
import "fmt"
func main() {
m := make([]string, 1, 25)
fmt.Println(m) // [ ]
changeMe(m)
fmt.Println(m) // [Todd]
}
func changeMe(z []string) {
z[0] = "Todd"
fmt.Println(z) // [Todd]
}