From: Russ Cox Date: Fri, 12 Dec 2008 02:19:07 +0000 (-0800) Subject: bug129 X-Git-Tag: weekly.2009-11-06~2518 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=889d9b6ffdae0c5f457d9c3ed1fc1798fc255b3a;p=gostls13.git bug129 package foo import "syscall" func f() { syscall := 1 } R=ken OCL=21036 CL=21036 --- diff --git a/test/bugs/bug129.go b/test/bugs/bug129.go new file mode 100644 index 0000000000..f388dca88c --- /dev/null +++ b/test/bugs/bug129.go @@ -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 +} diff --git a/test/golden.out b/test/golden.out index 5ed3174070..30badd3b14 100644 --- a/test/golden.out +++ b/test/golden.out @@ -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