aboutsummaryrefslogtreecommitdiff
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
commit5309fae1a344b8a0d4e73a8505bc47e290496ee7 (patch)
treebf2b2e637f5c4a8394b0fed5dc82e773b4766a5f /test/fixedbugs/bug045.go
parent0f61f0140d4380df86a135d5d8ea89edff9fb278 (diff)
downloadgo-5309fae1a344b8a0d4e73a8505bc47e290496ee7.tar.xz
test: don't assign address of array to slice.
R=rsc CC=golang-dev https://golang.org/cl/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 d8a712c6da..94888c40e2 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;
}
/*