diff options
author | Ian Lance Taylor <iant@golang.org> | 2009-07-02 15:54:57 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2009-07-02 15:54:57 -0700 |
commit | ea7e71c2d6e8561eba4aa63813090940b31ea478 (patch) | |
tree | e39e436a293fb3a24715c46df69143505323c920 /test/indirect1.go | |
parent | 37ce7a11336b42f2bdf97d3a28f93d744db52b89 (diff) | |
download | go-ea7e71c2d6e8561eba4aa63813090940b31ea478.tar.gz |
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
Diffstat (limited to 'test/indirect1.go')
-rw-r--r-- | test/indirect1.go | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/indirect1.go b/test/indirect1.go index b5df15d06..8abfd5108 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" } |