aboutsummaryrefslogtreecommitdiff
path: root/test/import5.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2012-01-31 17:29:59 -0500
committerRuss Cox <rsc@golang.org>2012-01-31 17:29:59 -0500
commit33f3afa7afac66f91ba281521db26ea932ead5a4 (patch)
tree3c69193ad1887882ade7f50a6d5599e9b9d5b0db /test/import5.go
parent6aa6fdcf71c9efa4c61e2db1eaf6a84cc720a855 (diff)
downloadgo-33f3afa7afac66f91ba281521db26ea932ead5a4.tar.gz
go-33f3afa7afac66f91ba281521db26ea932ead5a4.zip
gc: diagnose \ in import path
R=ken2 CC=golang-dev https://golang.org/cl/5609044
Diffstat (limited to 'test/import5.go')
-rw-r--r--test/import5.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/import5.go b/test/import5.go
new file mode 100644
index 0000000000..ee041709a1
--- /dev/null
+++ b/test/import5.go
@@ -0,0 +1,11 @@
+// errchk $G -e $D/$F.go
+
+// Copyright 2009 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.
+
+// import paths are slash-separated; reject backslash
+
+package main
+
+import `net\http` // ERROR "backslash"