test: add bug469, a case where gccgo gaves an incorrect error

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/6856084
This commit is contained in:
Ian Lance Taylor 2012-11-24 16:53:08 -08:00
parent 1e9ab9e792
commit be5c445909
1 changed files with 13 additions and 0 deletions

13
test/fixedbugs/bug469.go Normal file
View File

@ -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)