]> Cypherpunks.ru repositories - gostls13.git/blobdiff - test/copy1.go
cmd/compile/internal/inline: score call sites exposed by inlines
[gostls13.git] / test / copy1.go
index e1fa105584a1d6ac30c447abaafa0b01a0b4fdb3..c0760f71904879206c81a7bbc6e7e45d27f58b85 100644 (file)
@@ -17,11 +17,11 @@ func main() {
        _ = copy()        // ERROR "not enough arguments"
        _ = copy(1, 2, 3) // ERROR "too many arguments"
 
-       _ = copy(si, "hi") // ERROR "have different element types.*int.*string"
+       _ = copy(si, "hi") // ERROR "have different element types(.*int.*string| int and byte)"
        _ = copy(si, sf)   // ERROR "have different element types.*int.*float64"
 
-       _ = copy(1, 2)  // ERROR "must be slices; have int, int"
-       _ = copy(1, si) // ERROR "first argument to copy should be"
-       _ = copy(si, 2) // ERROR "second argument to copy should be"
+       _ = copy(1, 2)  // ERROR "must be slices; have int, int|expects slice arguments"
+       _ = copy(1, si) // ERROR "first argument to copy should be|expects slice arguments"
+       _ = copy(si, 2) // ERROR "second argument to copy should be|expects slice arguments"
 
 }