]> Cypherpunks repositories - gostls13.git/commitdiff
bug129
authorRuss Cox <rsc@golang.org>
Fri, 12 Dec 2008 02:19:07 +0000 (18:19 -0800)
committerRuss Cox <rsc@golang.org>
Fri, 12 Dec 2008 02:19:07 +0000 (18:19 -0800)
package foo
import "syscall"
func f() {
syscall := 1
}

R=ken
OCL=21036
CL=21036

test/bugs/bug129.go [new file with mode: 0644]
test/golden.out

diff --git a/test/bugs/bug129.go b/test/bugs/bug129.go
new file mode 100644 (file)
index 0000000..f388dca
--- /dev/null
@@ -0,0 +1,11 @@
+// $G $D/$F.go || echo BUG129
+
+// 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 foo
+import "syscall"
+func f() {
+       syscall := 1
+}
index 5ed3174070ba9197e3d49d5677e58cc173620dad..30badd3b14606a2e4aad56e13d6dea1702097ef6 100644 (file)
@@ -164,6 +164,10 @@ BUG: errchk: command succeeded unexpectedly:  6g bugs/bug123.go
 =========== bugs/bug125.go
 BUG: errchk: command succeeded unexpectedly:  6g bugs/bug125.go
 
+=========== bugs/bug129.go
+bugs/bug129.go:6: syscall is package, not var
+BUG129
+
 =========== fixedbugs/bug016.go
 fixedbugs/bug016.go:7: overflow converting constant to uint