3 // Copyright 2019 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.
7 // Make sure that the line number is reported correctly
8 // for faulting instructions.
30 n := runtime.Callers(1, pcs[:])
31 frames := runtime.CallersFrames(pcs[:n])
33 f, more := frames.Next()
34 if f.Function == "main.f" && f.Line != 24 {
35 panic(fmt.Errorf("expected line 24, got line %d", f.Line))