From be5c445909ca872a67683a3f1720df8f99593656 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 24 Nov 2012 16:53:08 -0800 Subject: [PATCH] test: add bug469, a case where gccgo gaves an incorrect error R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/6856084 --- test/fixedbugs/bug469.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/fixedbugs/bug469.go 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) -- 2.48.1