summaryrefslogtreecommitdiff
path: root/test/fixedbugs/bug045.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/fixedbugs/bug045.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/fixedbugs/bug045.go')
-rw-r--r--test/fixedbugs/bug045.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fixedbugs/bug045.go b/test/fixedbugs/bug045.go
index d8a712c6d..94888c40e 100644
--- a/test/fixedbugs/bug045.go
+++ b/test/fixedbugs/bug045.go
@@ -13,7 +13,7 @@ type T struct {
func main() {
var ta []*T;
- ta = new([1]*T);
+ ta = new([1]*T)[0:];
ta[0] = nil;
}
/*