aboutsummaryrefslogtreecommitdiff
path: root/test/stack.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-04-10 06:22:41 -0700
committerRuss Cox <rsc@golang.org>2009-04-10 06:22:41 -0700
commit78edbfdcf47d634bba23e20e9025a55f2ce83a13 (patch)
tree41d5b56a8d4beb2ab1a2981a125c634c281da522 /test/stack.go
parent870c91aec2c36185f92867b49a19a1c9bdc4f217 (diff)
downloadgo-78edbfdcf47d634bba23e20e9025a55f2ce83a13.tar.gz
go-78edbfdcf47d634bba23e20e9025a55f2ce83a13.zip
test for new string bug
TBR=r OCL=27306 CL=27306
Diffstat (limited to 'test/stack.go')
-rw-r--r--test/stack.go5
1 files changed, 5 insertions, 0 deletions
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) {