]> Cypherpunks repositories - gostls13.git/commitdiff
net/netip: test that Addr.AsSlice is inlineable
authorTobias Klauser <tklauser@distanz.ch>
Mon, 13 May 2024 16:00:46 +0000 (18:00 +0200)
committerGopher Robot <gobot@golang.org>
Mon, 13 May 2024 21:43:09 +0000 (21:43 +0000)
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>
src/net/netip/inlining_test.go

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