mirror of
https://github.com/golang/go
synced 2024-11-22 01:14:40 -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:
parent
f228ed1a90
commit
292bd04a43
@ -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"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user