aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/math/big/int_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/math/big/int_test.go b/src/math/big/int_test.go
index 4ebb09d2c2..961ba0cdf5 100644
--- a/src/math/big/int_test.go
+++ b/src/math/big/int_test.go
@@ -8,6 +8,7 @@ import (
"bytes"
"encoding/hex"
"fmt"
+ "internal/testenv"
"math"
"math/rand"
"strconv"
@@ -1905,6 +1906,9 @@ func TestNewIntMinInt64(t *testing.T) {
}
func TestNewIntAllocs(t *testing.T) {
+ if strings.HasSuffix(testenv.Builder(), "-noopt") {
+ t.Skip("inlining is disabled on noopt builder")
+ }
for _, n := range []int64{0, 7, -7, 1 << 30, -1 << 30, 1 << 50, -1 << 50} {
x := NewInt(3)
got := testing.AllocsPerRun(100, func() {