3 // Copyright 2011 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.
22 case <-t.c: // THIS IS LINE 22
33 pc, file, line, ok := runtime.Caller(i)
35 print("BUG: bug347: cannot find caller\n")
38 if !strings.Contains(file, "bug347.go") || runtime.FuncForPC(pc).Name() != "main.f" {
39 // walk past runtime frames
43 print("BUG: bug347: panic at ", file, ":", line, " in ", runtime.FuncForPC(pc).Name(), "\n")