aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/string_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/string_test.go')
-rw-r--r--src/runtime/string_test.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/runtime/string_test.go b/src/runtime/string_test.go
index b1757f0721..6aab0ed764 100644
--- a/src/runtime/string_test.go
+++ b/src/runtime/string_test.go
@@ -162,19 +162,6 @@ func TestLargeStringConcat(t *testing.T) {
}
}
-func TestGostringnocopy(t *testing.T) {
- max := *runtime.Maxstring
- b := make([]byte, max+10)
- for i := uintptr(0); i < max+9; i++ {
- b[i] = 'a'
- }
- _ = runtime.Gostringnocopy(&b[0])
- newmax := *runtime.Maxstring
- if newmax != max+9 {
- t.Errorf("want %d, got %d", max+9, newmax)
- }
-}
-
func TestCompareTempString(t *testing.T) {
s := strings.Repeat("x", sizeNoStack)
b := []byte(s)