From: Ian Lance Taylor Date: Thu, 2 Jul 2009 22:54:57 +0000 (-0700) Subject: Recognize gccgo error messages. X-Git-Tag: weekly.2009-11-06~1279 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f1428b2910dc7dec28ff3caa08a2cc41496cff83;p=gostls13.git Recognize gccgo error messages. (Amusing side note: the GNU coding standards say: Please do not use the term "illegal" to refer to erroneous input to a computer program. Please use "invalid" for this, and reserve the term "illegal" for activities prohibited by law.) indirect1.go:35:3: error: argument must be string or array or slice or map indirect1.go:36:3: error: argument must be string or array or slice or map indirect1.go:38:3: error: argument must be string or array or slice or map indirect1.go:41:3: error: argument must be string or array or slice or map indirect1.go:42:3: error: argument must be string or array or slice or map indirect1.go:44:3: error: argument must be string or array or slice or map indirect1.go:55:3: error: argument must be string or array or slice or map indirect1.go:56:3: error: argument must be string or array or slice or map indirect1.go:58:3: error: argument must be string or array or slice or map indirect1.go:61:3: error: argument must be array or slice indirect1.go:62:3: error: argument must be array or slice indirect1.go:64:3: error: argument must be array or slice R=rsc DELTA=12 (0 added, 0 deleted, 12 changed) OCL=31081 CL=31088 --- diff --git a/test/indirect1.go b/test/indirect1.go index b5df15d065..8abfd51089 100644 --- a/test/indirect1.go +++ b/test/indirect1.go @@ -36,16 +36,16 @@ func f() // it decides there are type errors. x := len(m0)+ - len(m1)+ // ERROR "illegal" - len(m2)+ // ERROR "illegal" + len(m1)+ // ERROR "illegal|must be" + len(m2)+ // ERROR "illegal|must be" len(m3)+ - len(m4)+ // ERROR "illegal" + len(m4)+ // ERROR "illegal|must be" len(s0)+ - len(s1)+ // ERROR "illegal" - len(s2)+ // ERROR "illegal" + len(s1)+ // ERROR "illegal|must be" + len(s2)+ // ERROR "illegal|must be" len(s3)+ - len(s4)+ // ERROR "illegal" + len(s4)+ // ERROR "illegal|must be" len(a0)+ len(a1)+ @@ -56,14 +56,14 @@ func f() cap(a2)+ len(b0)+ - len(b1)+ // ERROR "illegal" - len(b2)+ // ERROR "illegal" + len(b1)+ // ERROR "illegal|must be" + len(b2)+ // ERROR "illegal|must be" len(b3)+ - len(b4)+ // ERROR "illegal" + len(b4)+ // ERROR "illegal|must be" cap(b0)+ - cap(b1)+ // ERROR "illegal" - cap(b2)+ // ERROR "illegal" + cap(b1)+ // ERROR "illegal|must be" + cap(b2)+ // ERROR "illegal|must be" cap(b3)+ - cap(b4); // ERROR "illegal" + cap(b4); // ERROR "illegal|must be" }