
On platforms other than macOS this doesn't matter but on macOS a segmentation fault will cause ContinueOnce to return an error, before returning it we should still fix the current thread and selected goroutine values. Fixes #2078
11 lines
94 B
Go
11 lines
94 B
Go
package main
|
|
|
|
func main() {
|
|
f(nil) //break
|
|
println("ok")
|
|
}
|
|
|
|
func f(x *int) {
|
|
println(*x)
|
|
}
|