aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2010-09-01 21:04:57 -0700
committerIan Lance Taylor <iant@golang.org>2010-09-01 21:04:57 -0700
commitc28525a137488e0d2c3f2e7c69d2932a4a4270ab (patch)
treefd30f5dbb1b5b4148fe14ddb79fdf7dad5d37357
parent2fe0f8da52d01bb2bf705a7b0f4fec933b65c6ea (diff)
downloadgo-c28525a137488e0d2c3f2e7c69d2932a4a4270ab.tar.gz
go-c28525a137488e0d2c3f2e7c69d2932a4a4270ab.zip
test: Recognize gccgo error messages.
bug278.go:18: error: invalid left hand side of assignment bug278.go:19: error: array is not addressable bug278.go:21: error: invalid left hand side of assignment bug278.go:22: error: invalid left hand side of assignment R=rsc CC=golang-dev https://golang.org/cl/2122042
-rw-r--r--test/fixedbugs/bug278.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/fixedbugs/bug278.go b/test/fixedbugs/bug278.go
index 8c804cfe4a..3699b9a141 100644
--- a/test/fixedbugs/bug278.go
+++ b/test/fixedbugs/bug278.go
@@ -15,9 +15,9 @@ func f() [10]int {
var m map[int][10]int
func main() {
- f()[1] = 2 // ERROR "cannot"
- f()[2:3][0] = 4 // ERROR "cannot"
+ f()[1] = 2 // ERROR "cannot|invalid"
+ f()[2:3][0] = 4 // ERROR "cannot|addressable"
var x = "abc"
- x[2] = 3 // ERROR "cannot"
- m[0][5] = 6 // ERROR "cannot"
+ x[2] = 3 // ERROR "cannot|invalid"
+ m[0][5] = 6 // ERROR "cannot|invalid"
}