]> Cypherpunks repositories - gostls13.git/commit
test/codegen: make sure assignment results are used.
authorCherry Mui <cherryyz@google.com>
Sat, 4 Oct 2025 15:32:33 +0000 (11:32 -0400)
committerCherry Mui <cherryyz@google.com>
Mon, 6 Oct 2025 21:51:23 +0000 (14:51 -0700)
commit1d62e92567a858b18f4e7e0c24e071c039dd3edf
treef9ef8940075817f3252e397136d0855cb7ed4982
parent4fca79833fcdd0dc19bb0feba8715a0def3d07be
test/codegen: make sure assignment results are used.

Some tests make assignments to an argument without reading it.
With CL 708865, they are treated as dead stores and are removed.
Make sure the results are used.

Fixes #75745.
Fixes #75746.

Change-Id: I05580beb1006505ec1550e5fa245b54dcefd10b9
Reviewed-on: https://go-review.googlesource.com/c/go/+/708916
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
test/codegen/constants.go
test/codegen/mathbits.go