]> Cypherpunks.ru repositories - gostls13.git/blobdiff - test/switch2.go
cmd/compile/internal/inline: score call sites exposed by inlines
[gostls13.git] / test / switch2.go
index 11ff5c5d9b95c275e81ff965245a71b9e1d5e19d..66e89fda19e2c3079b5b453d1ed5d2df7a25bca5 100644 (file)
@@ -11,11 +11,11 @@ package main
 
 func f() {
        switch {
-       case 0; // ERROR "expecting := or = or : or comma"
+       case 0; // ERROR "expecting := or = or : or comma|expected :"
        }
 
        switch {
-       case 0; // ERROR "expecting := or = or : or comma"
+       case 0; // ERROR "expecting := or = or : or comma|expected :"
        default:
        }
 
@@ -34,6 +34,6 @@ func f() {
        }
 
        switch {
-       if x: // ERROR "expecting case or default or }"
+       if x: // ERROR "expected case or default or }"
        }
 }