1
0
mirror of https://github.com/golang/go synced 2024-11-14 23:20:27 -07:00

net/netip: test that Addr.AsSlice is inlineable

CL 584995 made Addr.AsSlice inlineable as a side effect. Make sure we
don't regress.

Updates #56136

Change-Id: Ib5f77a430db66ffe45c4cbb264da7a401945fec9
Reviewed-on: https://go-review.googlesource.com/c/go/+/585057
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
This commit is contained in:
Tobias Klauser 2024-05-13 18:00:46 +02:00 committed by Gopher Robot
parent 259d2347d2
commit 9f9afbf332

View File

@ -31,6 +31,7 @@ func TestInlining(t *testing.T) {
})
wantInlinable := []string{
"(*uint128).halves",
"Addr.AsSlice",
"Addr.BitLen",
"Addr.hasZone",
"Addr.Is4",