| // $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. |
| for _, i := range *x { // THIS IS LINE 17 |
| pc, file, line, ok := runtime.Caller(i) |
| print("BUG: bug348: cannot find caller\n") |
| if !strings.Contains(file, "bug348.go") || runtime.FuncForPC(pc).Name() != "main.f" { |
| // walk past runtime frames |
| print("BUG: bug348: panic at ", file, ":", line, " in ", runtime.FuncForPC(pc).Name(), "\n") |