]> Cypherpunks repositories - gostls13.git/commit
cmd/link/internal/ld: split TestInlinedRoutineRecords
authorMichael Pratt <mpratt@google.com>
Wed, 22 Feb 2023 22:11:28 +0000 (17:11 -0500)
committerGopher Robot <gobot@golang.org>
Thu, 23 Feb 2023 21:40:21 +0000 (21:40 +0000)
commit778a60c1033f21ed0a8977d6292e9964476dda68
tree77ff61b3788840070de51ba737bfb8deda1ecaab
parent20da76da91ddf1629cbabb31d4f05cdff1ce452a
cmd/link/internal/ld: split TestInlinedRoutineRecords

A later CL will add additional test cases for CallFile and CallLine with
a //line directive. The parameter/variable checks have nothing to do
with line numbers and will only serve to make the test more difficult to
follow, so split this single mega-test into two: one for testing
file/line and the other for testing parameters/variables.

There are a few additional minor changes:

1. A missing AttrName is now an error.
2. Check added for AttrCallLine, which was previously untested.

For #58648.

Change-Id: I35e75ead766bcf910c58eb20541769349841f2b5
Reviewed-on: https://go-review.googlesource.com/c/go/+/470875
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Than McIntosh <thanm@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/link/internal/ld/dwarf_test.go