diff options
| author | Dominique Lefevre <domingolefevre@gmail.com> | 2023-08-24 10:17:36 +0300 |
|---|---|---|
| committer | Cherry Mui <cherryyz@google.com> | 2023-09-01 15:07:26 +0000 |
| commit | bb74a53c215a9e3ebf2c2b22bd60b06ce45f0b3b (patch) | |
| tree | 8ffb9c107e9150824081212f8d01953e88ef7d89 /src/cmd/link/internal/ld/deadcode_test.go | |
| parent | 6b52bfa393a7f8942568e7a29816c673ff73f797 (diff) | |
| download | go-bb74a53c215a9e3ebf2c2b22bd60b06ce45f0b3b.tar.xz | |
cmd/link: add testcases for MethodByName(string literal).
Change-Id: I96ea268ecceea75a24303526ed2f17c8a5e142c1
Reviewed-on: https://go-review.googlesource.com/c/go/+/522438
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/cmd/link/internal/ld/deadcode_test.go')
| -rw-r--r-- | src/cmd/link/internal/ld/deadcode_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/link/internal/ld/deadcode_test.go b/src/cmd/link/internal/ld/deadcode_test.go index 633a0d0bfb..6962a4eba0 100644 --- a/src/cmd/link/internal/ld/deadcode_test.go +++ b/src/cmd/link/internal/ld/deadcode_test.go @@ -27,6 +27,9 @@ func TestDeadcode(t *testing.T) { {"ifacemethod2", []string{"main.T.M"}, nil}, {"ifacemethod3", []string{"main.S.M"}, nil}, {"ifacemethod4", nil, []string{"main.T.M"}}, + {"ifacemethod5", []string{"main.S.M"}, nil}, + {"ifacemethod6", []string{"main.S.M"}, []string{"main.S.N"}}, + {"structof_funcof", []string{"main.S.M"}, []string{"main.S.N"}}, {"globalmap", []string{"main.small", "main.effect"}, []string{"main.large"}}, } |
