diff options
Diffstat (limited to 'libgo/go/bytes/bytes_test.go')
-rw-r--r-- | libgo/go/bytes/bytes_test.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libgo/go/bytes/bytes_test.go b/libgo/go/bytes/bytes_test.go index 26eac5e..ad01952 100644 --- a/libgo/go/bytes/bytes_test.go +++ b/libgo/go/bytes/bytes_test.go @@ -10,6 +10,7 @@ import ( "internal/testenv" "math/rand" "reflect" + "runtime" "strings" "testing" "unicode" @@ -392,7 +393,11 @@ func TestIndexRune(t *testing.T) { } }) if allocs != 0 { - t.Errorf("expected no allocations, got %f", allocs) + if runtime.Compiler == "gccgo" { + t.Log("does not work on gccgo without better escape analysis") + } else { + t.Errorf("expected no allocations, got %f", allocs) + } } } |