diff options
| author | Cherry Zhang <cherryyz@google.com> | 2020-05-05 16:20:56 -0400 |
|---|---|---|
| committer | Cherry Zhang <cherryyz@google.com> | 2020-05-05 20:36:42 +0000 |
| commit | 430cee7cd2c2cd4b458fbf2b2dcc4604a3ed8c05 (patch) | |
| tree | 5b29e84c99eb35a61e3f08c023e62cffc7135cd5 /src/cmd/link/internal/ld/deadcode_test.go | |
| parent | 0e617d3d5c7e89b1ad1b0285fc77314b8d056211 (diff) | |
| download | go-430cee7cd2c2cd4b458fbf2b2dcc4604a3ed8c05.tar.xz | |
cmd/link: fix loop variable capturing in TestDeadcode
Fixes #38884.
Change-Id: Id5ab9977b6404d0dbf71f13e3e4fefb6868ac802
Reviewed-on: https://go-review.googlesource.com/c/go/+/232377
Run-TryBot: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/link/internal/ld/deadcode_test.go')
| -rw-r--r-- | src/cmd/link/internal/ld/deadcode_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/link/internal/ld/deadcode_test.go b/src/cmd/link/internal/ld/deadcode_test.go index 23a8685bbb..460bc16e56 100644 --- a/src/cmd/link/internal/ld/deadcode_test.go +++ b/src/cmd/link/internal/ld/deadcode_test.go @@ -32,6 +32,7 @@ func TestDeadcode(t *testing.T) { {"typedesc", "type.main.T"}, } for _, test := range tests { + test := test t.Run(test.src, func(t *testing.T) { t.Parallel() src := filepath.Join("testdata", "deadcode", test.src+".go") |
