summaryrefslogtreecommitdiff
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
commit30184639e89a6480e41041b87ab4d3c1a77cbb02 (patch)
treeaa32e9b943dfa5fee9dfc7a30e0196f671201ae4 /test/import1.go
parent7ba959f5ef7c1b1345606ff0a80179e0642102d7 (diff)
downloadgo-30184639e89a6480e41041b87ab4d3c1a77cbb02.tar.gz
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 000000000..caa12224c
--- /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"
+)