Skip to content

Commit 243c8eb

Browse files
committed
cmd/compile: add pure Go math/big functions to TestIntendedInlining
Change-Id: Id29a9e48a09965e457f923a0ff023722b38b27ef Reviewed-on: https://go-review.googlesource.com/c/go/+/165157 Run-TryBot: Josh Bleecher Snyder <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 4d10aba commit 243c8eb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cmd/compile/internal/gc/inl_test.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ func TestIntendedInlining(t *testing.T) {
144144
},
145145
"math/big": {
146146
"bigEndianWord",
147+
// The following functions require the math_big_pure_go build tag.
148+
"addVW",
149+
"subVW",
147150
},
148151
}
149152

@@ -202,7 +205,7 @@ func TestIntendedInlining(t *testing.T) {
202205
}
203206
}
204207

205-
args := append([]string{"build", "-a", "-gcflags=all=-m -m"}, pkgs...)
208+
args := append([]string{"build", "-a", "-gcflags=all=-m -m", "-tags=math_big_pure_go"}, pkgs...)
206209
cmd := testenv.CleanCmdEnv(exec.Command(testenv.GoToolPath(t), args...))
207210
pr, pw := io.Pipe()
208211
cmd.Stdout = pw

0 commit comments

Comments
 (0)