diff options
author | Rob Pike <r@golang.org> | 2008-07-07 10:03:10 -0700 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2008-07-07 10:03:10 -0700 |
commit | 468d53d11764f10fccd99e79f7e5bd6b39290fbf (patch) | |
tree | 3519c970f432a9a2ff16c743f34ce687a40d778e /test/fixedbugs/bug035.go | |
parent | 9b22ee657b8f7a43fa28d1cc738bb7b4e05d18be (diff) | |
download | golang-468d53d11764f10fccd99e79f7e5bd6b39290fbf.tar.gz |
test cleanup
SVN=126120
Diffstat (limited to 'test/fixedbugs/bug035.go')
-rw-r--r-- | test/fixedbugs/bug035.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/fixedbugs/bug035.go b/test/fixedbugs/bug035.go new file mode 100644 index 000000000..5e93a8d89 --- /dev/null +++ b/test/fixedbugs/bug035.go @@ -0,0 +1,13 @@ +// errchk $G $D/$F.go + +// 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 + +func f9(a int) (i int, f float) { + i := 9; // BUG redeclaration + f := float(9); // BUG redeclaration + return i, f; +} |