From: Rob Pike Date: Wed, 18 Jun 2008 20:06:09 +0000 (-0700) Subject: 'default' bug in switch statements is fixed X-Git-Tag: weekly.2009-11-06~3658 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9b664c580f6cc51ca460ee3e29e40e9f8a438a67;p=gostls13.git 'default' bug in switch statements is fixed SVN=123411 --- diff --git a/test/bugs/bug028.go b/test/fixedbugs/bug028.go similarity index 91% rename from test/bugs/bug028.go rename to test/fixedbugs/bug028.go index 06abeded2a..02e1ae2d39 100644 --- a/test/bugs/bug028.go +++ b/test/fixedbugs/bug028.go @@ -18,6 +18,10 @@ func Alloc(i int) int { } } +func main() { + s := Alloc(7); +} + /* bug028.go:7: unreachable statements in a switch */