mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
gc: make sure main.main has correct type
R=ken2 CC=golang-dev https://golang.org/cl/883049
This commit is contained in:
parent
d77010547d
commit
fe7826858c
2 changed files with 10 additions and 3 deletions
|
|
@ -6,6 +6,6 @@
|
|||
|
||||
package main
|
||||
|
||||
func main (x int) { // GCCGO_ERROR "previous"
|
||||
func f (x int) { // GCCGO_ERROR "previous"
|
||||
var x int; // ERROR "redecl|redefinition"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue