]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile/internal/test: update abi tests for recent spec changes
authorThan McIntosh <thanm@google.com>
Tue, 26 Jan 2021 13:24:00 +0000 (08:24 -0500)
committerThan McIntosh <thanm@google.com>
Tue, 23 Mar 2021 19:05:35 +0000 (19:05 +0000)
commit2887ef499a0e01a3b6fe92bf874843f9f2d05167
tree65df88144ccea3ff080c57ea9dabd04675fd6851
parentc59b17e5a2244f7a99c440a07a1c174344da0ad8
cmd/compile/internal/test: update abi tests for recent spec changes

The internal ABI spec was recently updated to include specific
language covering "past-the-end" pointers and structs containing
trailing zero-sized fields. Add a unit test that makes sure we do the
right thing in this case. Fix a couple comments in other unit tests.

Change-Id: I18d373d11e122aec74b316837843887272676c63
Reviewed-on: https://go-review.googlesource.com/c/go/+/303809
Trust: Than McIntosh <thanm@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/test/abiutils_test.go