summaryrefslogtreecommitdiff
path: root/test/index.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2013-09-27 20:38:52 -0700
committerIan Lance Taylor <iant@golang.org>2013-09-27 20:38:52 -0700
commit8187418e8fa70b962000ecef5b367da8cb712876 (patch)
tree2fc9955a268cc40605715ff97ed15b2e0c56a307 /test/index.go
parent4a0d33590d15d202053bd7409f0f732cd5d8978f (diff)
downloadgo-8187418e8fa70b962000ecef5b367da8cb712876.tar.gz
test: recognize gccgo error message in index.go
When a floating point constant is used as an array/slice index, gccgo prints "error: index must be integer"; gc prints "constant 2.1 truncated to integer". R=golang-dev, bradfitz CC=golang-dev https://codereview.appspot.com/14044044
Diffstat (limited to 'test/index.go')
-rw-r--r--test/index.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/index.go b/test/index.go
index f9360c102..a8c471bb3 100644
--- a/test/index.go
+++ b/test/index.go
@@ -164,7 +164,7 @@ func testExpr(b *bufio.Writer, expr string) {
if pass == 0 {
fmt.Fprintf(b, "\ttest(func(){use(%s)}, %q)\n", expr, expr)
} else {
- fmt.Fprintf(b, "\tuse(%s) // ERROR \"index|overflow|truncated\"\n", expr)
+ fmt.Fprintf(b, "\tuse(%s) // ERROR \"index|overflow|truncated|must be integer\"\n", expr)
}
}