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