]> Cypherpunks repositories - gostls13.git/commitdiff
test: match gccgo error messages for bug016.go.
authorIan Lance Taylor <iant@golang.org>
Fri, 25 Mar 2011 20:31:30 +0000 (13:31 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 25 Mar 2011 20:31:30 +0000 (13:31 -0700)
bug016.go:11:8: error: negative shift count

R=rsc, gri
CC=golang-dev
https://golang.org/cl/4312055

test/fixedbugs/bug016.go

index 1cdd8df08423faf64ceeb098057024b9d0babf49..4fbfd48fd97ef1e20224b22c59ab14ee28c475e9 100644 (file)
@@ -8,7 +8,7 @@ package main
 
 func main() {
        var i int = 100
-       i = i << -3 // ERROR "overflows"
+       i = i << -3 // ERROR "overflows|negative"
 }
 
 /*