aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2020-11-28 18:14:38 -0800
committerIan Lance Taylor <iant@golang.org>2020-11-30 20:08:34 +0000
commita45e12fd4bd2cc4d5970f374499b603bfb793891 (patch)
tree270e6d4974f6c741e703b95f548a550ab5dc4ef2 /test
parentd6abf298cf1ef56dc8cbec2ee9a18c071bb6eb3c (diff)
downloadgo-a45e12fd4bd2cc4d5970f374499b603bfb793891.tar.gz
go-a45e12fd4bd2cc4d5970f374499b603bfb793891.zip
test: recognize gofrontend error messages
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>
Diffstat (limited to 'test')
-rw-r--r--test/shift1.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/shift1.go b/test/shift1.go
index df0c032cd5..d6a6c38839 100644
--- a/test/shift1.go
+++ b/test/shift1.go
@@ -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