aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/bytes/bytes_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/bytes/bytes_test.go')
-rw-r--r--libgo/go/bytes/bytes_test.go7
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)
+ }
}
}