1// errorcheck 2 3// Verify that the Go compiler will not 4// die after running into an undefined 5// type in the argument list for a 6// function. 7// Does not compile. 8 9package main 10 11func mine(int b) int { // ERROR "undefined.*b" 12 return b + 2 // ERROR "undefined.*b" 13} 14 15func main() { 16 mine() // GCCGO_ERROR "not enough arguments" 17 c = mine() // ERROR "undefined.*c|not enough arguments" "cannot assign to c" 18} 19