mirror of
https://github.com/golang/go
synced 2024-11-21 19:14:44 -07:00
test for new string bug
TBR=r OCL=27306 CL=27306
This commit is contained in:
parent
870c91aec2
commit
78edbfdcf4
@ -31,8 +31,13 @@ func d(t T) {
|
|||||||
|
|
||||||
var c = make(chan int);
|
var c = make(chan int);
|
||||||
var t T;
|
var t T;
|
||||||
|
var b = []byte{1,2,3,4,5,6,7,8,9,10};
|
||||||
|
|
||||||
func recur(n int) {
|
func recur(n int) {
|
||||||
|
ss := string(b);
|
||||||
|
if len(ss) != len(b) {
|
||||||
|
panic("bad []byte -> string");
|
||||||
|
}
|
||||||
go g(c, t);
|
go g(c, t);
|
||||||
s := <-c;
|
s := <-c;
|
||||||
if s != len(t) {
|
if s != len(t) {
|
||||||
|
Loading…
Reference in New Issue
Block a user