| // Copyright 2018 The Go Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| func f(p, q *struct{}) bool { |
| func h(p, q func() struct{}) bool { |
| func fi(p, q *struct{}) bool { |
| func hi(p, q func() struct{}) bool { |
| shouldPanic(func() { f(nil, nil) }) |
| shouldPanic(func() { g(nil, nil) }) |
| shouldPanic(func() { h(nil, nil) }) |
| shouldPanic(func() { fi(nil, nil) }) |
| shouldPanic(func() { gi(nil, nil) }) |
| shouldPanic(func() { hi(nil, nil) }) |
| func shouldPanic(x func()) { |