diff options
author | Rémy Oudompheng <oudomphe@phare.normalesup.org> | 2013-06-26 18:05:02 +0200 |
---|---|---|
committer | Rémy Oudompheng <oudomphe@phare.normalesup.org> | 2013-06-26 18:05:02 +0200 |
commit | be6556f787569c9ff8d8aa7aeee3611e2eee3421 (patch) | |
tree | f1e6b26377b1561135da8aeecb11e03dd28b3d88 /test/const6.go | |
parent | 1761e250117e9917c3927fec06475fe98651c564 (diff) | |
download | go-be6556f787569c9ff8d8aa7aeee3611e2eee3421.tar.gz go-be6556f787569c9ff8d8aa7aeee3611e2eee3421.zip |
test: match gccgo error strings.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/10468043
Diffstat (limited to 'test/const6.go')
-rw-r--r-- | test/const6.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/const6.go b/test/const6.go index c04435db63..c005ac3696 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" ) |