delve/_fixtures/testreturnaddress.go
Derek Parker f43007c55e Fix: Handle inability to find return addr
Fixes a code path where stacktrace returns < 2 locations and
thread.ReturnAddress would panic. Now returns an error.
2015-08-10 10:45:33 -05:00

16 lines
185 B
Go

package main
import "sync"
func doSomething(wg *sync.WaitGroup) {
wg.Done()
}
func main() {
var wg sync.WaitGroup
wg.Add(2)
go doSomething(&wg)
go doSomething(&wg)
wg.Wait()
}