summaryrefslogtreecommitdiff
path: root/test/ken
diff options
context:
space:
mode:
authorKen Thompson <ken@golang.org>2009-08-28 15:44:24 -0700
committerKen Thompson <ken@golang.org>2009-08-28 15:44:24 -0700
commit3b1ce64910051fb2defe0eaf6473f94c49dc4b10 (patch)
treef93b70fb011f1c64820edeeb13b42e230dcaff80 /test/ken
parentb03ae4b2b4e80bbbf0eac2ae0db3cf38043ebe2e (diff)
downloadgo-3b1ce64910051fb2defe0eaf6473f94c49dc4b10.tar.gz
arraytoslice and some cleanup
R=rsc OCL=34058 CL=34058
Diffstat (limited to 'test/ken')
-rw-r--r--test/ken/slicearray.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/ken/slicearray.go b/test/ken/slicearray.go
index 31faa9c78..8e03cb3f4 100644
--- a/test/ken/slicearray.go
+++ b/test/ken/slicearray.go
@@ -4,7 +4,6 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-
package main
var bx [10]byte
@@ -17,6 +16,12 @@ var t int
func
main()
{
+ lb = 0; hb = 10;
+ by = &bx; tstb();
+
+ lb = 0; hb = 10;
+ fy = &fx; tstf();
+
// width 1 (byte)
lb = 0; hb = 10;
by = bx[lb:hb]; tstb();