Commit a2993456 authored by Daniel Martí's avatar Daniel Martí

cmd/compile: add reflect to TestIntendedInlining

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í <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarIlya Tocar <ilya.tocar@intel.com>
Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
parent 0828ec1e
...@@ -113,6 +113,23 @@ func TestIntendedInlining(t *testing.T) { ...@@ -113,6 +113,23 @@ func TestIntendedInlining(t *testing.T) {
"RuneLen", "RuneLen",
"ValidRune", "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": { "regexp": {
"(*bitState).push", "(*bitState).push",
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment