]> Cypherpunks repositories - gostls13.git/commitdiff
bug210
authorRobert Griesemer <gri@golang.org>
Fri, 16 Oct 2009 20:31:35 +0000 (13:31 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 16 Oct 2009 20:31:35 +0000 (13:31 -0700)
R=rsc
DELTA=20  (20 added, 0 deleted, 0 changed)
OCL=35847
CL=35847

test/bugs/bug210.go [new file with mode: 0644]
test/golden.out

diff --git a/test/bugs/bug210.go b/test/bugs/bug210.go
new file mode 100644 (file)
index 0000000..a40dab1
--- /dev/null
@@ -0,0 +1,16 @@
+// $G $D/$F.go || echo BUG: should compile
+
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package main
+
+type T struct {
+       children []T;
+}
+
+/*
+uetli:/home/gri/go/test/bugs gri$ 6g bug210.go
+bug210.go:10: invalid recursive type []T
+*/
index 6db0a1217a1b0dd226588be37cfbe7d037aea9ef..dea36ea2bddad05b0c82ad22b3a8cc115a962375 100644 (file)
@@ -166,3 +166,7 @@ BUG: errchk: bugs/bug193.go:14: missing expected error: 'shift'
 too many calls: 5
 panic PC=xxx
 BUG: bug196
+
+=========== bugs/bug210.go
+bugs/bug210.go:10: invalid recursive type []T
+BUG: should compile