Skip to content

Commit

Permalink
cmd/compile: add pure Go math/big functions to TestIntendedInlining
Browse files Browse the repository at this point in the history
Change-Id: Id29a9e48a09965e457f923a0ff023722b38b27ef
  • Loading branch information
josharian committed Mar 5, 2019
1 parent c2e74b7 commit 56f0950
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cmd/compile/internal/gc/inl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ func TestIntendedInlining(t *testing.T) {
},
"math/big": {
"bigEndianWord",
// Following functions require math_big_pure_go build tag.
"addVW",
"subVW",
},
}

Expand Down Expand Up @@ -189,7 +192,7 @@ func TestIntendedInlining(t *testing.T) {
}
}

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

0 comments on commit 56f0950

Please sign in to comment.