aboutsummaryrefslogtreecommitdiff
path: root/test/import1.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2009-05-19 15:23:43 -0700
committerIan Lance Taylor <iant@golang.org>2009-05-19 15:23:43 -0700
commitbc5620c2e084093f3b411e0b425743ca7d751a9e (patch)
tree4c7b742d556e77cdd88e5d713ebc52bf7bee56db /test/import1.go
parentd85238635ab04908e31c9a30ca5cd9832c8a89cf (diff)
downloadgo-bc5620c2e084093f3b411e0b425743ca7d751a9e.tar.gz
go-bc5620c2e084093f3b411e0b425743ca7d751a9e.zip
Match gccgo error messages.
bug117.go:13:12: error: reference to undefined field or method import1.go:9:2: error: redefinition of '.main.bufio' import1.go:8:2: note: previous definition of '.main.bufio' was here import1.go:9:2: error: incompatible imported type 'bufio.Error' interface9.go:25:5: error: incompatible types in assignment (method P requires a pointer) interface9.go:30:5: error: incompatible types in assignment (method P requires a pointer) R=rsc DELTA=5 (0 added, 0 deleted, 5 changed) OCL=29044 CL=29055
Diffstat (limited to 'test/import1.go')
-rw-r--r--test/import1.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/import1.go b/test/import1.go
index caa12224c8..35b618937f 100644
--- a/test/import1.go
+++ b/test/import1.go
@@ -9,6 +9,6 @@
package main
import (
- "bufio";
- bufio "os"; // ERROR "redeclaration"
+ "bufio"; // GCCGO_ERROR "previous"
+ bufio "os"; // ERROR "redeclaration|redefinition|incompatible"
)