From 78edbfdcf47d634bba23e20e9025a55f2ce83a13 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 10 Apr 2009 06:22:41 -0700 Subject: [PATCH] test for new string bug TBR=r OCL=27306 CL=27306 --- test/stack.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/stack.go b/test/stack.go index 7b7d36f916..ffc9ac14b0 100644 --- a/test/stack.go +++ b/test/stack.go @@ -31,8 +31,13 @@ func d(t T) { var c = make(chan int); var t T; +var b = []byte{1,2,3,4,5,6,7,8,9,10}; func recur(n int) { + ss := string(b); + if len(ss) != len(b) { + panic("bad []byte -> string"); + } go g(c, t); s := <-c; if s != len(t) {