3 // Copyright 2018 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.
26 buf := make([]byte, 4000)
27 n := runtime.Stack(buf, true)
29 if strings.Contains(s, "-fm") {
30 panic("wrapper present in stack trace:\n" + s)
35 foo := Func(func() {})