summaryrefslogtreecommitdiff
path: root/test/fixedbugs/bug000.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2008-06-06 16:56:18 -0700
committerRob Pike <r@golang.org>2008-06-06 16:56:18 -0700
commita113e0be20d65993eb0d9daaa1639778e163b6e9 (patch)
tree3573c63d4ce80b4089679ec397d86e3576bea2a1 /test/fixedbugs/bug000.go
parent9b2ed37709ed34057013d85ad754cb288f386156 (diff)
downloadgo-a113e0be20d65993eb0d9daaa1639778e163b6e9.tar.gz
check in the bugs and fixed bugs
SVN=121543
Diffstat (limited to 'test/fixedbugs/bug000.go')
-rw-r--r--test/fixedbugs/bug000.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/fixedbugs/bug000.go b/test/fixedbugs/bug000.go
new file mode 100644
index 000000000..ccb24e8e9
--- /dev/null
+++ b/test/fixedbugs/bug000.go
@@ -0,0 +1,20 @@
+// $G $D/$F.go && $L $F.$A && ./$A.out
+
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package main
+
+func main() {
+ var x int;
+ switch x {
+ case 0:
+ {}
+ case 1:
+ x = 0;
+ }
+}
+/*
+bug0.go:8: case statement out of place
+*/