]> Cypherpunks repositories - gostls13.git/commitdiff
make test/fixedbugs save for optional semis
authorRobert Griesemer <gri@golang.org>
Thu, 10 Dec 2009 19:25:54 +0000 (11:25 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 10 Dec 2009 19:25:54 +0000 (11:25 -0800)
R=rsc
https://golang.org/cl/173045

test/fixedbugs/bug036.go
test/fixedbugs/bug055.go
test/fixedbugs/bug064.go
test/fixedbugs/bug076.go
test/fixedbugs/bug089.go
test/fixedbugs/bug194.go
test/fixedbugs/bug203.go
test/import1.go

index 8698dc7bf36ae69edd64969c25deedc20345878d..cc20516ce89488f3074c47c9135316406894cf19 100644 (file)
@@ -7,8 +7,7 @@
 
 package main
 
-func main()
-{
+func main() {
        s := float(0);
        s := float(0);  // BUG redeclaration
 }
index 3b6d8642773b6b9a8183d89ea1ad7704a6d37576..0326d828f2cad4206a4570102afd748ea0d6b005 100644 (file)
@@ -18,5 +18,5 @@ func main() {
        type s2 int;
        var k = func (a int) int { return a+1 }(3);
        _, _ = j, k;
-ro:
+ro: ;
 }
index 38c2188dd2f69eb6dea7836be2d01dab1083103e..92d2154236fe890a7b103e10c39c798c4158139d 100644 (file)
@@ -12,8 +12,7 @@ swap(x, y int) (u, v int) {
 }
 
 func
-main()
-{
+main() {
        a := 1;
        b := 2;
        a, b = swap(swap(a, b));
index 0828662c32239ef63d50552b36c3a760922ca53f..065cecc015bcd46f31294e5d6038908c22097a91 100644 (file)
@@ -7,12 +7,12 @@
 package main
 
 func f() {
-exit:
+exit: ;
 }
 
 
 func main() {
-exit:  // this should be legal (labels not properly scoped?)
+exit: ; // this should be legal (labels not properly scoped?)
 }
 
 /*
index e3d8ff66bb502d0403975b4c972472f28dc1605f..fd3dff3ec903d10554323165a33757ae219c1fe8 100644 (file)
@@ -15,7 +15,7 @@ var   i1      I1;
 var    i2      I2;
 
 func
-main()
-{
+main() {
+
        i2 = e().(I2);  // bug089.go:16: fatal error: agen_inter i2i
 }
index 5f101440ed2758fae688739baa04c601a8faa8c2..42d06311cd6c640d327a2b109686ecc1d79736f7 100644 (file)
@@ -17,9 +17,9 @@ var v8 = T5{f:11}
 var pf func(T1)
 
 func main() {
-       if v1 != 1 || v2.f != 2 || v3[0] != 3 || v3[1] != 4
-          || v4[0] != 5 || v4[1] != 6 || v5[0] != 7 || v5[1] != 8
-          || v6.f != 9 || v7[0] != 10 || v8[0] != 11 {
+       if v1 != 1 || v2.f != 2 || v3[0] != 3 || v3[1] != 4 ||
+          v4[0] != 5 || v4[1] != 6 || v5[0] != 7 || v5[1] != 8 ||
+          v6.f != 9 || v7[0] != 10 || v8[0] != 11 {
                panic()
        }
 }
index 5b04b2efbc823ce1cf13cf3390a40d6f5408e1b2..bf86ee912ba976fd470a3181d5dc357abae1be29 100644 (file)
@@ -9,12 +9,10 @@ package main
 var s [8]string
 
 func
-init()
-{
+init() {
        s = [...]string{ "now", "is", "the", "time", "to", "fix", "this", "bug"}
 }
 
 func
-main()
-{
+main() {
 }
index e809990b766a81f6cc9664d989dbef698204c63f..baed207cc02987d9305b307f0343fb4c07e36683 100644 (file)
@@ -14,4 +14,4 @@ import bufio "os"     // ERROR "redeclared|redefinition|incompatible"
 import (
        "fmt";  // GCCGO_ERROR "previous"
        fmt "math";     // ERROR "redeclared|redefinition|incompatible"
-)
\ No newline at end of file
+)