]> Cypherpunks.ru repositories - gostls13.git/blobdiff - test/assign.go
cmd/compile/internal/inline: score call sites exposed by inlines
[gostls13.git] / test / assign.go
index 549f42eb807bd67b104e76918d29b028868f4ef0..bdec58b710f4210a7741a6973a5cd4ed0ce64211 100644 (file)
@@ -42,7 +42,7 @@ func main() {
                _ = x
        }
        {
-               x := sync.Mutex{key: 0} // ERROR "(unknown|assignment).*Mutex|unknown field.* in struct literal"
+               x := sync.Mutex{key: 0} // ERROR "(unknown|assignment).*Mutex"
                _ = x
        }
        {
@@ -56,13 +56,13 @@ func main() {
        {
                var x = 1
                {
-                       x, x := 2, 3 // ERROR "x repeated on left side of :=|x redeclared in this block"
+                       x, x := 2, 3 // ERROR ".*x.* repeated on left side of :=|x redeclared in this block"
                        _ = x
                }
                _ = x
        }
        {
-               a, a := 1, 2 // ERROR "a repeated on left side of :=|a redeclared in this block"
+               a, a := 1, 2 // ERROR ".*a.* repeated on left side of :=|a redeclared in this block"
                _ = a
        }
 }