compiler, libgo: Permit testing package when test imports it circularly.

From-SVN: r195931
This commit is contained in:
Ian Lance Taylor 2013-02-10 06:02:38 +00:00
parent 8e29a61c2d
commit d54fc07473
16 changed files with 84 additions and 264 deletions

View file

@ -2,11 +2,10 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package binary_test
package binary
import (
"bytes"
. "encoding/binary"
"io"
"math"
"reflect"
@ -239,7 +238,7 @@ func BenchmarkReadStruct(b *testing.B) {
bsr := &byteSliceReader{}
var buf bytes.Buffer
Write(&buf, BigEndian, &s)
n := DataSize(reflect.ValueOf(s))
n := dataSize(reflect.ValueOf(s))
b.SetBytes(int64(n))
t := s
b.ResetTimer()