]> Cypherpunks repositories - gostls13.git/commitdiff
test: change bug040 to use errorcheck
authorIan Lance Taylor <iant@golang.org>
Sat, 18 Feb 2012 04:35:40 +0000 (20:35 -0800)
committerIan Lance Taylor <iant@golang.org>
Sat, 18 Feb 2012 04:35:40 +0000 (20:35 -0800)
Because bug040.go was ignoring all error messages, the fact
that it got an error about fuction main was being ignored.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5675085

test/fixedbugs/bug040.go

index 912316cb6fffa53a1d3d281280e29602b57d80f4..007f47f9f56a3cd0efe840aaa608b996e30ee570 100644 (file)
@@ -1,5 +1,4 @@
-// ! $G $D/$F.go >/dev/null
-// # ignoring error messages...
+// errorcheck
 
 // Copyright 2009 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
@@ -7,5 +6,6 @@
 
 package main
 
-func main (x, x int) {  // BUG redeclaration error
+func f (x,             // GCCGO_ERROR "previous"
+       x int) {        // ERROR "redeclared|redefinition" "duplicate"
 }