3 // Copyright 2019 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.
7 // Check that deferring a nil function causes a proper
8 // panic when the deferred function is invoked (not
9 // when the function is deferred).
10 // See Issue #8047 and #34926.
20 panic("did not panic")