]> Cypherpunks repositories - gostls13.git/commitdiff
test: recognize gofrontend error messages
authorIan Lance Taylor <iant@golang.org>
Sun, 29 Nov 2020 02:14:38 +0000 (18:14 -0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 30 Nov 2020 20:08:34 +0000 (20:08 +0000)
shift1.go:76:16: error: shift of non-integer operand
shift1.go:77:16: error: shift of non-integer operand

Change-Id: I48584c0b01f9f6912a93b5f9bba55b5803fbeced
Reviewed-on: https://go-review.googlesource.com/c/go/+/273888
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
test/shift1.go

index df0c032cd5b6955da86b4cf0aafb88f1e2abf9d2..d6a6c38839f56076a9445e160192570d8bb997fb 100644 (file)
@@ -73,8 +73,8 @@ func _() {
        // non constants arguments trigger a different path
        f2 := 1.2
        s2 := "hi"
-       _ = f2 << 2 // ERROR "shift of type float64"
-       _ = s2 << 2 // ERROR "shift of type string"
+       _ = f2 << 2 // ERROR "shift of type float64|non-integer"
+       _ = s2 << 2 // ERROR "shift of type string|non-integer"
 }
 
 // shifts in comparisons w/ untyped operands