summaryrefslogtreecommitdiff
path: root/test/const6.go
diff options
context:
space:
mode:
authorR?my Oudompheng <oudomphe@phare.normalesup.org>2013-06-26 18:05:02 +0200
committerR?my Oudompheng <oudomphe@phare.normalesup.org>2013-06-26 18:05:02 +0200
commite0f57b4bcedef40500e93da87de388a5b565954b (patch)
tree7ea628ff4cc15e591a963b766f000a3d70af4204 /test/const6.go
parent7d90a369ea0628a3838a985c4df664da6ec2e5da (diff)
downloadgo-e0f57b4bcedef40500e93da87de388a5b565954b.tar.gz
test: match gccgo error strings.
R=golang-dev, bradfitz CC=golang-dev https://codereview.appspot.com/10468043
Diffstat (limited to 'test/const6.go')
-rw-r--r--test/const6.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/const6.go b/test/const6.go
index c04435db6..c005ac369 100644
--- a/test/const6.go
+++ b/test/const6.go
@@ -19,12 +19,12 @@ var (
c4 mybool = c2 == (1 < 2)
c5 mybool = 1 < 2
c6 mybool1 = x < y
- c7 = c1 == c2 // ERROR "mismatched types"
- c8 = c2 == c6 // ERROR "mismatched types"
- c9 = c1 == c6 // ERROR "mismatched types"
+ c7 = c1 == c2 // ERROR "mismatched types|incompatible types"
+ c8 = c2 == c6 // ERROR "mismatched types|incompatible types"
+ c9 = c1 == c6 // ERROR "mismatched types|incompatible types"
_ = c2 && (x < y)
_ = c2 && (1 < 2)
- _ = c1 && c2 // ERROR "mismatched types"
- _ = c2 && c6 // ERROR "mismatched types"
- _ = c1 && c6 // ERROR "mismatched types"
+ _ = c1 && c2 // ERROR "mismatched types|incompatible types"
+ _ = c2 && c6 // ERROR "mismatched types|incompatible types"
+ _ = c1 && c6 // ERROR "mismatched types|incompatible types"
)