]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/test: fix noopt builder
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Wed, 26 Feb 2025 14:04:04 +0000 (21:04 +0700)
committerGopher Robot <gobot@golang.org>
Wed, 26 Feb 2025 15:04:08 +0000 (07:04 -0800)
commit011da163f475b38ad70c9c652df6dc8dc2ba5168
treec5282834acab69e94cdc2d67b4aabd7920cce339
parent1b1c6b838e678cbc9d93a78324fb5de873cd4487
cmd/compile/internal/test: fix noopt builder

The function argument passed to hash function escaped to heap when
optimization is disabled, causing the builder failed.

To fix this, skip the test on noopt builder.

Updates #71943
Fixes #71965

Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-noopt
Change-Id: I3a9ece09bfa10bf5eb102a7da3ade65634565cb4
Reviewed-on: https://go-review.googlesource.com/c/go/+/652735
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
src/cmd/compile/internal/test/issue71943_test.go