mirror of
https://github.com/golang/go
synced 2024-10-14 20:05:36 +00:00
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
This commit is contained in:
parent
b70563aa0a
commit
f1428b2910
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue