]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: don't emit C local if it is not used
authorIan Lance Taylor <iant@golang.org>
Wed, 17 Dec 2025 00:00:36 +0000 (16:00 -0800)
committerGopher Robot <gobot@golang.org>
Wed, 17 Dec 2025 05:28:13 +0000 (21:28 -0800)
commit8c28ab936a1042fad8531583ff7737aa361e324a
tree5ad1bcd18bf349553b7dbcdc0b0ce9c1f83e9a50
parent65b71c11d469029f755328c5e51742139f6b8686
cmd/cgo: don't emit C local if it is not used

Fixes #76861

Change-Id: Icc8452e48ed736e8240f8afea18637c33b8e3ef8
Reviewed-on: https://go-review.googlesource.com/c/go/+/730600
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Joe Richey <joerichey@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
src/cmd/cgo/internal/test/issue76861.go [new file with mode: 0644]
src/cmd/cgo/internal/test/issue76861/a.go [new file with mode: 0644]
src/cmd/cgo/out.go