diff --git a/test/method1.go b/test/method1.go index f25eb30c8b2..c88607d425d 100644 --- a/test/method1.go +++ b/test/method1.go @@ -7,12 +7,12 @@ package main type T struct { } -func (t *T) M(int, string); -func (t *T) M(int, float) { } // ERROR "redeclared" +func (t *T) M(int, string); // GCCGO_ERROR "previous" +func (t *T) M(int, float) { } // ERROR "redeclared|redefinition" -func f(int, string); -func f(int, float) { } // ERROR "redeclared" +func f(int, string); // GCCGO_ERROR "previous" +func f(int, float) { } // ERROR "redeclared|redefinition" -func g(a int, b string); +func g(a int, b string); // GCCGO_ERROR "previous" func g(a int, c string); // ERROR "names changed"