]> Cypherpunks.ru repositories - gostls13.git/commitdiff
test: match gccgo error strings.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Wed, 26 Jun 2013 16:05:02 +0000 (18:05 +0200)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Wed, 26 Jun 2013 16:05:02 +0000 (18:05 +0200)
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/10468043

test/const6.go
test/fixedbugs/issue4085a.go

index c04435db63ffd9c7d8acff97db1590978571aea6..c005ac3696db53b98b96d858a6bde90e72298cf9 100644 (file)
@@ -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"
 )
index 8a52b268ff2cd87da217beeab2d29ba9eea77dcc..089637d86b86e1b04674a0700ff9134de2890be0 100644 (file)
@@ -9,10 +9,10 @@ package main
 type T []int
 
 func main() {
-       _ = make(T, -1)       // ERROR "negative"
-       _ = make(T, 0.5)       // ERROR "constant 0.5 truncated to integer"
-       _ = make(T, 1.0)       // ok
-       _ = make(T, 1<<63)  // ERROR "len argument too large"
-       _ = make(T, 0, -1)    // ERROR "negative cap"
+       _ = make(T, -1)    // ERROR "negative"
+       _ = make(T, 0.5)   // ERROR "constant 0.5 truncated to integer|non-integer len argument"
+       _ = make(T, 1.0)   // ok
+       _ = make(T, 1<<63) // ERROR "len argument too large"
+       _ = make(T, 0, -1) // ERROR "negative cap"
        _ = make(T, 10, 0) // ERROR "len larger than cap"
 }