aboutsummaryrefslogtreecommitdiff
path: root/test/import1.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-05-08 16:40:55 -0700
committerRuss Cox <rsc@golang.org>2009-05-08 16:40:55 -0700
commit9a861b6aaada5f2cca0fd510302bc5aeb6bcd2fa (patch)
treeaa32e9b943dfa5fee9dfc7a30e0196f671201ae4 /test/import1.go
parent08805934368ec919cf008c2d2f625badb2d40dcd (diff)
downloadgo-9a861b6aaada5f2cca0fd510302bc5aeb6bcd2fa.tar.gz
go-9a861b6aaada5f2cca0fd510302bc5aeb6bcd2fa.zip
check for redeclaration of package name
R=r DELTA=10 (10 added, 0 deleted, 0 changed) OCL=28585 CL=28591
Diffstat (limited to 'test/import1.go')
-rw-r--r--test/import1.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/import1.go b/test/import1.go
new file mode 100644
index 0000000000..caa12224c8
--- /dev/null
+++ b/test/import1.go
@@ -0,0 +1,14 @@
+// errchk $G -e $D/$F.go
+
+// 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.
+
+// check for import conflicts
+
+package main
+
+import (
+ "bufio";
+ bufio "os"; // ERROR "redeclaration"
+)