Rémy Oudompheng | 2ece2f5 | 2012-02-18 22:15:42 +0100 | [diff] [blame] | 1 | // compile |
Russ Cox | 585eae3 | 2010-08-03 01:07:40 -0700 | [diff] [blame] | 2 | |
Emmanuel Odeke | 53fd522 | 2016-04-10 14:32:26 -0700 | [diff] [blame] | 3 | // Copyright 2010 The Go Authors. All rights reserved. |
Russ Cox | 585eae3 | 2010-08-03 01:07:40 -0700 | [diff] [blame] | 4 | // Use of this source code is governed by a BSD-style |
| 5 | // license that can be found in the LICENSE file. |
| 6 | |
Brad Fitzpatrick | 2ae7737 | 2015-07-10 17:17:11 -0600 | [diff] [blame] | 7 | // https://golang.org/issue/990 |
Russ Cox | 585eae3 | 2010-08-03 01:07:40 -0700 | [diff] [blame] | 8 | |
| 9 | package main |
| 10 | |
| 11 | func main() { |
| 12 | defer func() { |
| 13 | if recover() != nil { |
| 14 | panic("non-nil recover") |
| 15 | } |
| 16 | }() |
| 17 | panic(nil) |
| 18 | } |