summaryrefslogtreecommitdiff
path: root/test/convlit1.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2008-10-20 17:10:03 -0700
committerIan Lance Taylor <iant@golang.org>2008-10-20 17:10:03 -0700
commita299d29194ac2efca7a57e2c420241ebfed14fc6 (patch)
treeb23797f6460a4822932d93a5eeb4ec91a834e7f8 /test/convlit1.go
parent0d55b219ce91c35922ff43ec6ea40ed4c9c0411b (diff)
downloadgo-a299d29194ac2efca7a57e2c420241ebfed14fc6.tar.gz
Match error messages generated by gccgo:
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
Diffstat (limited to 'test/convlit1.go')
-rw-r--r--test/convlit1.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/convlit1.go b/test/convlit1.go
index c15bfcb4b..063a1e504 100644
--- a/test/convlit1.go
+++ b/test/convlit1.go
@@ -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"
}