diff options
author | Russ Cox <rsc@golang.org> | 2013-09-20 15:25:43 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2013-09-20 15:25:43 -0400 |
commit | 684409201ef1dea13a63fadacdf17aac70f52d66 (patch) | |
tree | 627d3f679d53473afdcf1b74967bb5f5bfd1f860 /test/import1.go | |
parent | b05f35581f47ea27415a1d724d2fcedc9f256e5f (diff) | |
download | go-684409201ef1dea13a63fadacdf17aac70f52d66.tar.gz |
cmd/gc: fix imported and not used error for import .
Fixes issues 6420.
R=ken2
CC=golang-dev
https://codereview.appspot.com/13703044
Diffstat (limited to 'test/import1.go')
-rw-r--r-- | test/import1.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/import1.go b/test/import1.go index 56b29d58c..d2bb55cbf 100644 --- a/test/import1.go +++ b/test/import1.go @@ -14,5 +14,6 @@ import bufio "os" // ERROR "redeclared|redefinition|incompatible" "imported and import ( "fmt" // GCCGO_ERROR "previous|not used" - fmt "math" // ERROR "redeclared|redefinition|incompatible" "imported and not used" + fmt "math" // ERROR "redeclared|redefinition|incompatible" "imported and not used: \x22math\x22 as fmt" + . "math" // ERROR "imported and not used: \x22math\x22$" ) |