]> Cypherpunks.ru repositories - gostls13.git/commit
reflect: refactor funcLayout tests
authorMichael Anthony Knyszek <mknyszek@google.com>
Tue, 6 Apr 2021 21:55:19 +0000 (21:55 +0000)
committerMichael Knyszek <mknyszek@google.com>
Tue, 6 Apr 2021 22:55:58 +0000 (22:55 +0000)
commitb084073b53bfc4236d95819a3cc34dcbb4f15392
treea73c1b9b940f5362cf5b57755fa6f0531c0380f8
parent0a510478b0294744894385c6c6f5ded6829b6524
reflect: refactor funcLayout tests

This change refactors the existing funcLayout tests and sets them up to
support the new register ABI by explicitly setting the register counts
to zero. This allows the test to pass if GOEXPERIMENT=regabiargs is set.

A follow-up change will add tests for a non-zero register count.

For #40724.

Change-Id: Ibbe061b4ed4fd70566eb38b9e6182dca32b81127
Reviewed-on: https://go-review.googlesource.com/c/go/+/307869
Trust: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/reflect/abi_test.go
src/reflect/all_test.go
src/reflect/export_test.go