summaryrefslogtreecommitdiff
path: root/test/syntax/import.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-01-26 23:13:22 -0800
committerRuss Cox <rsc@golang.org>2010-01-26 23:13:22 -0800
commitada0b68687ffc33bdb8259a0c14498aa4b574f32 (patch)
tree1535ebe4c0e90e048e14683b415f114c7471341a /test/syntax/import.go
parent84f677d33e0cfca4cd5994d3202e340b442361d1 (diff)
downloadgo-ada0b68687ffc33bdb8259a0c14498aa4b574f32.tar.gz
gc: improved syntax errors
* example-based syntax errors (go.errors) * enable bison's more specific errors and translate grammar token names into tokens like ++ * test cases R=ken2, r, ken3 CC=golang-dev http://codereview.appspot.com/194085
Diffstat (limited to 'test/syntax/import.go')
-rw-r--r--test/syntax/import.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/syntax/import.go b/test/syntax/import.go
new file mode 100644
index 000000000..90e7df007
--- /dev/null
+++ b/test/syntax/import.go
@@ -0,0 +1,14 @@
+// errchk $G -e $D/$F.go
+
+// Copyright 2010 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package main
+
+import (
+ "io", // ERROR "unexpected ,"
+ "os"
+)
+
+