diff options
author | Keith Randall <khr@golang.org> | 2013-08-09 15:27:45 -0700 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2013-08-09 15:27:45 -0700 |
commit | ff3b81fd342ae7c1123adc378cb0ec0f3bc5c548 (patch) | |
tree | 3a1078dcb92f31721644ecd7eff68d45e7f73a2a /test | |
parent | 6e76b9671f6cb863b00bd8c177a037a549da4954 (diff) | |
download | go-ff3b81fd342ae7c1123adc378cb0ec0f3bc5c548.tar.gz |
runtime: Better test tracebackability of jmpdefer when running a nil defer.
R=bradfitz, dvyukov
CC=golang-dev
https://codereview.appspot.com/12536046
Diffstat (limited to 'test')
-rw-r--r-- | test/fixedbugs/issue6055.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/fixedbugs/issue6055.go b/test/fixedbugs/issue6055.go index 4cc24d0c2..698f62ac9 100644 --- a/test/fixedbugs/issue6055.go +++ b/test/fixedbugs/issue6055.go @@ -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() } |