package main
-func main (x int) {
- var x int; // ERROR "redecl"
+func main (x int) { // GCCGO_ERROR "previous"
+ var x int; // ERROR "redecl|redefinition"
}
package main
func atom(s string) {
- if s == nil { // ERROR "nil"
+ if s == nil { // ERROR "nil|incompatible"
return;
}
}
package main
func main() {
- var s string = nil; // ERROR "illegal|invalid|cannot"
+ var s string = nil; // ERROR "illegal|invalid|incompatible|cannot"
}
package main
-func f() int { // ERROR "return"
+func f() int { // ERROR "return|control"
if false {
return 0;
}
func f() /* no return type */ {}
func main() {
- x := f(); // ERROR "mismatch|as value"
+ x := f(); // ERROR "mismatch|as value|no type"
}
type I interface {
f, g ();
- h T; // ERROR "syntax"
+ h T; // ERROR "syntax|signature"
}
func main() {
const a uint64 = 10;
- var b int64 = a; // ERROR "convert|cannot"
+ var b int64 = a; // ERROR "convert|cannot|incompatible"
}
}
type S struct {
- m map[S] bool; // ERROR "map key type"
+ m map[S] bool; // ERROR "map key type|complete"
}
package main
-func f() int { } // ERROR "return"
-func g() (foo int) { } // ERROR "return"
+func f() int { } // ERROR "return|control"
+func g() (foo int) { } // ERROR "return|control"
func f() {
a := true;
- a |= a; // ERROR "illegal.*OR|bool"
+ a |= a; // ERROR "illegal.*OR|bool|expected"
}
func main() {
x := 0;
- if x { // ERROR "x.*int"
+ if x { // ERROR "x.*int|bool"
}
}
func f() {
var x struct { T };
var y struct { T T };
- x = y // ERROR "cannot"
+ x = y // ERROR "cannot|incompatible"
}
type T1 struct { T }
func g() {
var x T1;
var y T2;
- x = y // ERROR "cannot"
+ x = y // ERROR "cannot|incompatible"
}