]> Cypherpunks repositories - gostls13.git/commitdiff
'default' bug in switch statements is fixed
authorRob Pike <r@golang.org>
Wed, 18 Jun 2008 20:06:09 +0000 (13:06 -0700)
committerRob Pike <r@golang.org>
Wed, 18 Jun 2008 20:06:09 +0000 (13:06 -0700)
SVN=123411

test/fixedbugs/bug028.go [moved from test/bugs/bug028.go with 91% similarity]

similarity index 91%
rename from test/bugs/bug028.go
rename to test/fixedbugs/bug028.go
index 06abeded2a9773d74262c50912cd84ec3db546a1..02e1ae2d394ff733d24651d87a97c0e6109bd1ec 100644 (file)
@@ -18,6 +18,10 @@ func Alloc(i int) int {
        }
 }
 
+func main() {
+       s := Alloc(7);
+}
+
 /*
 bug028.go:7: unreachable statements in a switch
 */