]> Cypherpunks.ru repositories - gostls13.git/commitdiff
test: fix build
authorRob Pike <r@golang.org>
Mon, 19 Aug 2013 02:05:33 +0000 (12:05 +1000)
committerRob Pike <r@golang.org>
Mon, 19 Aug 2013 02:05:33 +0000 (12:05 +1000)
syntax/*: update messages
sliceerr3.go: bizarre new error fixed by deleting a space.

I could have sworn I ran all.bash before submitting the CL that triggered these.

TBR=golang-dev@googlegroups.com

R=golang-dev
CC=golang-dev
https://golang.org/cl/12812044

test/slice3err.go
test/syntax/semi1.go
test/syntax/semi2.go
test/syntax/semi3.go
test/syntax/semi4.go

index c48ebfeaee2b067445d70d436cdad4dabfbd6c24..906b00703520afdbdc768896b49d376e93810489 100644 (file)
@@ -20,7 +20,7 @@ func f() {
        _ = array[::] // ERROR "middle index required in 3-index slice" "final index required in 3-index slice"
        _ = array[i::] // ERROR "middle index required in 3-index slice" "final index required in 3-index slice"
        _ = array[:j:] // ERROR "final index required in 3-index slice"
-       _ = array[i:j:] // ERROR  "final index required in 3-index slice"
+       _ = array[i:j:] // ERROR "final index required in 3-index slice"
        _ = array[::k] // ERROR "middle index required in 3-index slice"
        _ = array[i::k] // ERROR "middle index required in 3-index slice"
        _ = array[:j:k]
index 8fbfb206ad73137fb0f4168a90a266a018694cf4..cc30f26546a96f1002b96d618540a5626fb2d395 100644 (file)
@@ -7,7 +7,7 @@
 package main
 
 func main() {
-       if x; y         // ERROR "unexpected semicolon or newline before .?{.?|undefined"
+       if x; y         // ERROR "missing { after if clause|undefined"
        {
                z       // GCCGO_ERROR "undefined"
 
index cfb0ed17b7476474d08e4b710ba030e7c0226e53..61b8bf6d4ff737b85e0e513150cd3d7a15d1f9f3 100644 (file)
@@ -7,7 +7,7 @@
 package main
 
 func main() {
-       switch x; y     // ERROR "unexpected semicolon or newline before .?{.?|undefined"
+       switch x; y     // ERROR "missing { after switch clause|undefined"
        {
                z
 
index 645af7354a57ce7a42c22fd003abaa5c6747f835..bb87520c52e3609caff8787a8e7d9cada935fb0f 100644 (file)
@@ -7,7 +7,7 @@
 package main
 
 func main() {
-       for x; y; z     // ERROR "unexpected semicolon or newline before .?{.?|undefined"
+       for x; y; z     // ERROR "missing { after for clause|undefined"
        {
                z       // GCCGO_ERROR "undefined"
 
index e192348aa200ece91acfeab448d1807ce6f5bd71..00fa3f575f4c3e29f85d03bdd67956b52b01c343 100644 (file)
@@ -8,7 +8,7 @@ package main
 
 func main() {
        for x           // GCCGO_ERROR "undefined"
-       {               // ERROR "unexpected semicolon or newline before .?{.?"
+       {               // ERROR "missing { after for clause"
                z       // GCCGO_ERROR "undefined"