aboutsummaryrefslogtreecommitdiff
path: root/test/import1.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-08-19 15:18:08 -0700
committerRuss Cox <rsc@golang.org>2009-08-19 15:18:08 -0700
commit38df5ec58d23c6b1220fd92e0f63498a60fffd06 (patch)
treee9e133898df75b027844a97a76b0e36a3a755300 /test/import1.go
parent8aa9161e47d0c2f2b1692837c9f2f9d6b662ee9d (diff)
downloadgo-38df5ec58d23c6b1220fd92e0f63498a60fffd06.tar.gz
go-38df5ec58d23c6b1220fd92e0f63498a60fffd06.zip
try to do better line number reporting
in the presence of yacc lookahead. better but still not perfect R=ken OCL=33541 CL=33541
Diffstat (limited to 'test/import1.go')
-rw-r--r--test/import1.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/import1.go b/test/import1.go
index 35b618937f..e809990b76 100644
--- a/test/import1.go
+++ b/test/import1.go
@@ -8,7 +8,10 @@
package main
+import "bufio" // GCCGO_ERROR "previous"
+import bufio "os" // ERROR "redeclared|redefinition|incompatible"
+
import (
- "bufio"; // GCCGO_ERROR "previous"
- bufio "os"; // ERROR "redeclaration|redefinition|incompatible"
-)
+ "fmt"; // GCCGO_ERROR "previous"
+ fmt "math"; // ERROR "redeclared|redefinition|incompatible"
+) \ No newline at end of file