summaryrefslogtreecommitdiff
path: root/test/recover3.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/recover3.go')
-rw-r--r--test/recover3.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/recover3.go b/test/recover3.go
index 98700231e..ebfa0a307 100644
--- a/test/recover3.go
+++ b/test/recover3.go
@@ -71,6 +71,10 @@ func main() {
inter = 1
check("type-concrete", func() { println(inter.(string)) }, "int, not string")
check("type-interface", func() { println(inter.(m)) }, "missing method m")
+
+ if didbug {
+ panic("recover3")
+ }
}
type m interface {