From 9b664c580f6cc51ca460ee3e29e40e9f8a438a67 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Wed, 18 Jun 2008 13:06:09 -0700 Subject: [PATCH] 'default' bug in switch statements is fixed SVN=123411 --- test/{bugs => fixedbugs}/bug028.go | 4 ++++ 1 file changed, 4 insertions(+) rename test/{bugs => fixedbugs}/bug028.go (91%) 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 */