]> Cypherpunks repositories - gostls13.git/commitdiff
test: add bug469, a case where gccgo gaves an incorrect error
authorIan Lance Taylor <iant@golang.org>
Sun, 25 Nov 2012 00:53:08 +0000 (16:53 -0800)
committerIan Lance Taylor <iant@golang.org>
Sun, 25 Nov 2012 00:53:08 +0000 (16:53 -0800)
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/6856084

test/fixedbugs/bug469.go [new file with mode: 0644]

diff --git a/test/fixedbugs/bug469.go b/test/fixedbugs/bug469.go
new file mode 100644 (file)
index 0000000..71157a4
--- /dev/null
@@ -0,0 +1,13 @@
+// compile
+
+// Copyright 2012 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.
+
+// The gccgo compiler would complain about a redefinition of i, but
+// the spec imposes no requirements on parameter names in a function
+// type.
+
+package p
+
+type F func(i int) (i int)