diff options
author | Ken Thompson <ken@golang.org> | 2009-08-28 15:44:24 -0700 |
---|---|---|
committer | Ken Thompson <ken@golang.org> | 2009-08-28 15:44:24 -0700 |
commit | 4ae4a6f822069081728876451b2bac024f45b0ed (patch) | |
tree | f93b70fb011f1c64820edeeb13b42e230dcaff80 /test/ken/slicearray.go | |
parent | 34b3a883750dbedf4a9c2c48c0263ea82611ffc7 (diff) | |
download | golang-4ae4a6f822069081728876451b2bac024f45b0ed.tar.gz |
arraytoslice and some cleanup
R=rsc
OCL=34058
CL=34058
Diffstat (limited to 'test/ken/slicearray.go')
-rw-r--r-- | test/ken/slicearray.go | 7 |
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(); |