tools/go/analysis/passes/asmdecl
Michael McLoughlin bbbd9518e8 go/analysis/passes/asmdecl: fix array offsets
Array offsets in recursive structures do not include the accumulated
offset. This diff fixes the mistake and adds a test.

Fixes golang/go#29318

Change-Id: Iaa2a2f9404e4ed0e38b87e5e041709c1a8e25809
Reviewed-on: https://go-review.googlesource.com/c/154665
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
2018-12-18 19:42:33 +00:00
..
testdata/src/a go/analysis/passes/asmdecl: fix array offsets 2018-12-18 19:42:33 +00:00
asmdecl.go go/analysis/passes/asmdecl: fix array offsets 2018-12-18 19:42:33 +00:00
asmdecl_test.go go/analysis/passes: add doc and copyright comments 2018-10-16 20:28:15 +00:00