]> Cypherpunks repositories - gostls13.git/commit
cmd/link: add a test that reflect.Value.Call does not bring methods live
authorCherry Zhang <cherryyz@google.com>
Sat, 18 Apr 2020 05:38:31 +0000 (01:38 -0400)
committerCherry Zhang <cherryyz@google.com>
Sat, 18 Apr 2020 22:07:02 +0000 (22:07 +0000)
commitde2318e3c68530cd3ff6d3a1d378239598301fb0
treebdaead0c683d33f230b0fd2c0bea2277e9155d37
parentf5291cf03d58e004eae67eeb904efbf46aba666a
cmd/link: add a test that reflect.Value.Call does not bring methods live

reflect.Value.Call, if reachable, used to bring all exported
methods live. CL 228792 fixes this, removing the check of
reflect.Value.Call. This CL adds a test.

Updates #38505.

Change-Id: Ib4cab3c3c86c9c9702d041266e59b159d0ff0a97
Reviewed-on: https://go-review.googlesource.com/c/go/+/228878
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/link/internal/ld/deadcode_test.go [new file with mode: 0644]