]> Cypherpunks repositories - gostls13.git/commitdiff
Match error messages generated by gccgo:
authorIan Lance Taylor <iant@golang.org>
Tue, 21 Oct 2008 00:10:03 +0000 (17:10 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 21 Oct 2008 00:10:03 +0000 (17:10 -0700)
convlit1.go:6:15: error: composite literal requires array, map, or struct type
convlit1.go:5:16: error: incompatible type for element 0 in composite literal
convlit1.go:10:15: error: incompatible types in binary expression

R=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=17506
CL=17509

test/convlit1.go

index c15bfcb4bc98684267b4276a01d452b7e8d383c7..063a1e504dfd39bd6dd6df3bd45e145a1eb1ad35 100644 (file)
@@ -6,10 +6,10 @@
 
 package main
 
-var a = []int { "a" }; // ERROR "conver"
+var a = []int { "a" }; // ERROR "conver|incompatible"
 var b = int { 1 };     // ERROR "compos"
 
 
 func main() {
-       if sys.argc < 1 { }     // ERROR "conver"
+       if sys.argc < 1 { }     // ERROR "conver|incompatible"
 }