aboutsummaryrefslogtreecommitdiff
path: root/test/import4.dir
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2013-12-12 19:02:11 -0800
committerIan Lance Taylor <iant@golang.org>2013-12-12 19:02:11 -0800
commitd270e6f28c803cc9fb53f5adc2b935f73b146f86 (patch)
tree6fda2b46374513f4dd355a8dbc9e4a74cfcf954c /test/import4.dir
parent74a43546b03e521eb70a3bfd6a84123ffc4e12c2 (diff)
downloadgo-d270e6f28c803cc9fb53f5adc2b935f73b146f86.tar.gz
go-d270e6f28c803cc9fb53f5adc2b935f73b146f86.zip
test: match gccgo import error messages
Gccgo doesn't have the same equivalent of file name and package as the gc compiler, so the error messages are necessarily different. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/40510048
Diffstat (limited to 'test/import4.dir')
-rw-r--r--test/import4.dir/empty.go2
-rw-r--r--test/import4.dir/import4.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/import4.dir/empty.go b/test/import4.dir/empty.go
index c8214f36da..1dffa170df 100644
--- a/test/import4.dir/empty.go
+++ b/test/import4.dir/empty.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package P
+package empty
import ( )
const ( )
diff --git a/test/import4.dir/import4.go b/test/import4.dir/import4.go
index b9f973f172..f92c663d04 100644
--- a/test/import4.dir/import4.go
+++ b/test/import4.dir/import4.go
@@ -18,7 +18,7 @@ import X "math" // ERROR "imported and not used.*math"
import . "bufio" // ERROR "imported and not used.*bufio"
// again, package without anything in it
-import "./empty" // ERROR "imported and not used.*empty"
-import Z "./empty" // ERROR "imported and not used.*empty"
+import "./empty" // GC_ERROR "imported and not used.*empty"
+import Z "./empty" // GC_ERROR "imported and not used.*empty"
import . "./empty" // ERROR "imported and not used.*empty"