1
0
mirror of https://github.com/golang/go synced 2024-11-25 03:57:56 -07:00

test: change bug040 to use errorcheck

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
This commit is contained in:
Ian Lance Taylor 2012-02-17 20:35:40 -08:00
parent f228ed1a90
commit 292bd04a43

View 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"
}