From a2993456bb765e9a4c556e3529a01975764d28ae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Mart=C3=AD?= Date: Thu, 28 Sep 2017 20:44:21 +0100 Subject: [PATCH] cmd/compile: add reflect to TestIntendedInlining MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Add the package to the table and start it off with a few small, basic functions. Inspired by CL 66331, which added flag.ro. Updates #21851. Change-Id: I3995cde1ff7bb09a718110473bed8b193c2232a5 Reviewed-on: https://go-review.googlesource.com/66990 Run-TryBot: Daniel Martí TryBot-Result: Gobot Gobot Reviewed-by: Ilya Tocar Reviewed-by: Ian Lance Taylor --- src/cmd/compile/internal/gc/inl_test.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/cmd/compile/internal/gc/inl_test.go b/src/cmd/compile/internal/gc/inl_test.go index 426417ce79..3fdbf1e492 100644 --- a/src/cmd/compile/internal/gc/inl_test.go +++ b/src/cmd/compile/internal/gc/inl_test.go @@ -113,6 +113,23 @@ func TestIntendedInlining(t *testing.T) { "RuneLen", "ValidRune", }, + "reflect": { + "Value.CanAddr", + "Value.CanSet", + "Value.IsValid", + "add", + "align", + "flag.kind", + "flag.ro", + + // TODO: these use panic, need mid-stack + // inlining + // "Value.CanInterface", + // "Value.pointer", + // "flag.mustBe", + // "flag.mustBeAssignable", + // "flag.mustBeExported", + }, "regexp": { "(*bitState).push", }, -- 2.48.1