Help fix the asan builders.
Change-Id: I980f5171519643c3543bdefc6ea46fd0fca17c28
Reviewed-on: https://go-review.googlesource.com/c/go/+/674616
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
"internal/asan"
"internal/goarch"
"internal/goexperiment"
+ "internal/msan"
+ "internal/race"
"internal/testenv"
"io"
"math"
}
func TestTypeAssertAllocs(t *testing.T) {
+ if race.Enabled || asan.Enabled || msan.Enabled {
+ t.Skip("instrumentation breaks this optimization")
+ }
typeAssertAllocs[[128]int](t, ValueOf([128]int{}), 0)
typeAssertAllocs[any](t, ValueOf([128]int{}), 0)