make string take []byte only, so have to use *[10]byte to convert
R=r
DELTA=4 (0 added, 0 deleted, 4 changed)
OCL=27578
CL=27584
diff --git a/test/fixedbugs/bug102.go b/test/fixedbugs/bug102.go
index 5848097..92163ba 100644
--- a/test/fixedbugs/bug102.go
+++ b/test/fixedbugs/bug102.go
@@ -8,12 +8,12 @@
func main() {
var b [0]byte;
- s := string(b); // out of bounds trap
+ s := string(&b); // out of bounds trap
if s != "" {
panic("bad convert")
}
var b1 = [5]byte{'h', 'e', 'l', 'l', 'o'};
- if string(b1) != "hello" {
+ if string(&b1) != "hello" {
panic("bad convert 1")
}
var b2 = make([]byte, 5);