summaryrefslogtreecommitdiff
path: root/test/ken
diff options
context:
space:
mode:
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();