blob: 2be62b8bc806cd316a8243ef79ceb46084f78d3a [file] [log] [blame]
Rémy Oudompheng2ece2f52012-02-18 22:15:42 +01001// compile
Russ Cox585eae32010-08-03 01:07:40 -07002
Emmanuel Odeke53fd5222016-04-10 14:32:26 -07003// Copyright 2010 The Go Authors. All rights reserved.
Russ Cox585eae32010-08-03 01:07:40 -07004// 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}