aboutsummaryrefslogtreecommitdiff
path: root/test/import1.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2013-09-20 15:25:43 -0400
committerRuss Cox <rsc@golang.org>2013-09-20 15:25:43 -0400
commit5be1821a31f1b88b8b9b9083454143f5aa90790d (patch)
tree65641a2d542a557b6f24ec52f85fc5dd14d745e6 /test/import1.go
parent36f84809656d92ebe9a7c43e7395239903fcde1a (diff)
downloadgo-5be1821a31f1b88b8b9b9083454143f5aa90790d.tar.gz
go-5be1821a31f1b88b8b9b9083454143f5aa90790d.zip
cmd/gc: fix imported and not used error for import .
Fixes issues 6420. R=ken2 CC=golang-dev https://golang.org/cl/13703044
Diffstat (limited to 'test/import1.go')
-rw-r--r--test/import1.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/import1.go b/test/import1.go
index 56b29d58c0..d2bb55cbff 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$"
)