]> Cypherpunks repositories - gostls13.git/commitdiff
test: Recognize gccgo error messages.
authorIan Lance Taylor <iant@golang.org>
Wed, 1 Sep 2010 00:38:11 +0000 (17:38 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 1 Sep 2010 00:38:11 +0000 (17:38 -0700)
bug255.go:11: error: array bound truncated to integer
bug255.go:12: error: array bound is not numeric
bug255.go:13: error: array bound is not numeric
bug255.go:14: error: array bound is not constant
bug255.go:15: error: array bound overflows

R=rsc
CC=golang-dev
https://golang.org/cl/2091042

test/fixedbugs/bug255.go

index 4003a780cc1e267f711dec5c009738b4483cf199..44427cfdb4ec6a5ce5954e7eeab0e08d7c575e1d 100644 (file)
@@ -9,7 +9,7 @@ package main
 var a [10]int  // ok
 var b [1e1]int // ok
 var c [1.5]int // ERROR "truncated"
-var d ["abc"]int       // ERROR "invalid array bound"
-var e [nil]int // ERROR "invalid array bound"
-var f [e]int   // ERROR "invalid array bound"
+var d ["abc"]int       // ERROR "invalid array bound|not numeric"
+var e [nil]int // ERROR "invalid array bound|not numeric"
+var f [e]int   // ERROR "invalid array bound|not constant"
 var g [1<<65]int       // ERROR "overflows"