blob: fc5250393281ea0beef3984efa8cbf641f61928b [file] [log] [blame]
Rémy Oudompheng2ece2f52012-02-18 22:15:42 +01001// compile
Russ Cox585eae32010-08-03 01:07:40 -07002
3// Copyright 2010 The Go Authors. All rights reserved.
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file.
6
Brad Fitzpatrick2ae77372015-07-10 17:17:11 -06007// https://golang.org/issue/990
Russ Cox585eae32010-08-03 01:07:40 -07008
9package main
10
11func main() {
12 defer func() {
13 if recover() != nil {
14 panic("non-nil recover")
15 }
16 }()
17 panic(nil)
18}