Fix bootstrap/PR63632
[official-gcc.git] / libgo / go / strconv / internal_test.go
blobd0fa80edfb6f9a7f2a66535405111c313ef863ce
1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // export access to strconv internals for tests
7 package strconv
9 func NewDecimal(i uint64) *decimal {
10 d := new(decimal)
11 d.Assign(i)
12 return d
15 func SetOptimize(b bool) bool {
16 old := optimize
17 optimize = b
18 return old