summaryrefslogtreecommitdiff
path: root/test/ddd1.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2011-07-26 00:52:02 -0400
committerRuss Cox <rsc@golang.org>2011-07-26 00:52:02 -0400
commite6dc2b9f609c1da0e028b433c925256f9f70ec73 (patch)
tree28beb5b2fe67d108082c463a4bf6a98a3ff23065 /test/ddd1.go
parentd679e451e561b770161a59ae0f28dde39c6dbc29 (diff)
downloadgo-e6dc2b9f609c1da0e028b433c925256f9f70ec73.tar.gz
gc: disallow [...][...]int{{1,2,3}}
Fixes issue 1600. R=ken2 CC=golang-dev http://codereview.appspot.com/4819045
Diffstat (limited to 'test/ddd1.go')
-rw-r--r--test/ddd1.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ddd1.go b/test/ddd1.go
index 96a358e1c..83e32de7b 100644
--- a/test/ddd1.go
+++ b/test/ddd1.go
@@ -44,4 +44,6 @@ func bad(args ...int) {
_ = unsafe.Pointer(&x...) // ERROR "[.][.][.]"
_ = unsafe.Sizeof(x...) // ERROR "[.][.][.]"
_ = [...]byte("foo") // ERROR "[.][.][.]"
+ _ = [...][...]int{{1,2,3},{4,5,6}} // ERROR "[.][.][.]"
}
+