]> Cypherpunks repositories - gostls13.git/commitdiff
Recognize gccgo error messages.
authorIan Lance Taylor <iant@golang.org>
Thu, 2 Jul 2009 22:54:57 +0000 (15:54 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 2 Jul 2009 22:54:57 +0000 (15:54 -0700)
(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

test/indirect1.go

index b5df15d0657a49b6ff07b835f7ffc3d05c04897c..8abfd5108967123f4bf6d0a7a95c63ba529d8206 100644 (file)
@@ -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"
 }