From 9bd6b0afa4b08e23796c98a305b3c391a2327caf Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 31 Aug 2010 17:38:11 -0700 Subject: [PATCH] test: Recognize gccgo error messages. 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/fixedbugs/bug255.go b/test/fixedbugs/bug255.go index 4003a780cc1..44427cfdb4e 100644 --- a/test/fixedbugs/bug255.go +++ b/test/fixedbugs/bug255.go @@ -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"