Updates #53888
Change-Id: I34ef2c5bd23816e1991cfec2bef4cae72676b523
Reviewed-on: https://go-review.googlesource.com/c/go/+/422037
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//go:build !race
+//go:build !race && !goexperiment.unified
package test
import (
+ "internal/testenv"
+ "strings"
"testing"
)
+// TODO(cuonglm,mdempsky): figure out why Unifed IR failed?
func TestAppendOfMake(t *testing.T) {
+ if strings.HasSuffix(testenv.Builder(), "-noopt") {
+ t.Skip("append of make optimization is disabled on noopt builder")
+ }
for n := 32; n < 33; n++ { // avoid stack allocation of make()
b := make([]byte, n)
f := func() {