aboutsummaryrefslogtreecommitdiff
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
commitbf899befdbf923924139e655585c154c4935f2d3 (patch)
tree09e36f50d3975224312c76d21df7e3485eb0b23e /test/ddd1.go
parente5437ab0652865c9314c8fbf643743dd6415568f (diff)
downloadgo-bf899befdbf923924139e655585c154c4935f2d3.tar.gz
go-bf899befdbf923924139e655585c154c4935f2d3.zip
gc: disallow [...][...]int{{1,2,3}}
Fixes #1600. R=ken2 CC=golang-dev https://golang.org/cl/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 96a358e1c0..83e32de7b6 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 "[.][.][.]"
}
+