Commit 36f223da authored by Keith Randall's avatar Keith Randall

runtime: Better test tracebackability of jmpdefer when running a nil defer.

R=bradfitz, dvyukov
CC=golang-dev
https://golang.org/cl/12536046
parent e3dbb1a3
......@@ -6,11 +6,17 @@
package main
import "runtime"
type Closer interface {
Close()
}
func nilInterfaceDeferCall() {
defer func() {
// make sure a traceback happens with jmpdefer on the stack
runtime.GC()
}()
var x Closer
defer x.Close()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment