From: Ian Lance Taylor Date: Sun, 25 Nov 2012 00:53:08 +0000 (-0800) Subject: test: add bug469, a case where gccgo gaves an incorrect error X-Git-Tag: go1.1rc2~1810 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=be5c445909ca872a67683a3f1720df8f99593656;p=gostls13.git test: add bug469, a case where gccgo gaves an incorrect error R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/6856084 --- diff --git a/test/fixedbugs/bug469.go b/test/fixedbugs/bug469.go new file mode 100644 index 0000000000..71157a4c41 --- /dev/null +++ b/test/fixedbugs/bug469.go @@ -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)