summaryrefslogtreecommitdiff
path: root/test/ken/slicearray.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2010-08-31 07:34:01 -0700
committerIan Lance Taylor <iant@golang.org>2010-08-31 07:34:01 -0700
commita1ca80f6980d59055a0692b02285da7db666f83f (patch)
treee48982a73781dac3929c615fc717bf8bcee699cd /test/ken/slicearray.go
parent717ac1f25bf7229239c53170974f9fb4e2a758e1 (diff)
downloadgo-a1ca80f6980d59055a0692b02285da7db666f83f.tar.gz
test: don't assign address of array to slice.
R=rsc CC=golang-dev http://codereview.appspot.com/2084042
Diffstat (limited to 'test/ken/slicearray.go')
-rw-r--r--test/ken/slicearray.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ken/slicearray.go b/test/ken/slicearray.go
index 76ec80931..536bbf56b 100644
--- a/test/ken/slicearray.go
+++ b/test/ken/slicearray.go
@@ -16,12 +16,12 @@ var t int
func main() {
lb = 0
hb = 10
- by = &bx
+ by = bx[0:]
tstb()
lb = 0
hb = 10
- fy = &fx
+ fy = fx[0:]
tstf()
// width 1 (byte)