summaryrefslogtreecommitdiff
path: root/test/fixedbugs/bug091.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixedbugs/bug091.go')
-rw-r--r--test/fixedbugs/bug091.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/fixedbugs/bug091.go b/test/fixedbugs/bug091.go
index cfbb09cd8..c2ede7153 100644
--- a/test/fixedbugs/bug091.go
+++ b/test/fixedbugs/bug091.go
@@ -7,18 +7,19 @@
package main
func f1() {
- exit:
- print("hi\n");
+exit:
+ print("hi\n")
+ goto exit
}
func f2() {
- const c = 1234;
+ const c = 1234
}
func f3() {
- i := c; // ERROR "undef"
+ i := c // ERROR "undef"
}
func main() {
- f3();
+ f3()
}