From 9f9afbf3329b3d6d00fbcba069dbdd428cc1dd76 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 13 May 2024 18:00:46 +0200 Subject: [PATCH] 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 Reviewed-by: Dmitri Shuralyov Auto-Submit: Tobias Klauser Reviewed-by: Ian Lance Taylor --- src/net/netip/inlining_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/net/netip/inlining_test.go b/src/net/netip/inlining_test.go index b521eeebfd..6098c9619b 100644 --- a/src/net/netip/inlining_test.go +++ b/src/net/netip/inlining_test.go @@ -31,6 +31,7 @@ func TestInlining(t *testing.T) { }) wantInlinable := []string{ "(*uint128).halves", + "Addr.AsSlice", "Addr.BitLen", "Addr.hasZone", "Addr.Is4",