diff options
author | Russ Cox <rsc@golang.org> | 2012-01-31 17:29:59 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2012-01-31 17:29:59 -0500 |
commit | 1ce7537e5a664ce59d5a43b0fbce266a451b2c84 (patch) | |
tree | c79209d3b5eff0203f510772ee2fb7e4402e0864 /test/import5.go | |
parent | 9b2479bdfdb1d019bb70538a373b84f570f778f2 (diff) | |
download | go-1ce7537e5a664ce59d5a43b0fbce266a451b2c84.tar.gz |
gc: diagnose \ in import path
R=ken2
CC=golang-dev
http://codereview.appspot.com/5609044
Diffstat (limited to 'test/import5.go')
-rw-r--r-- | test/import5.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/import5.go b/test/import5.go new file mode 100644 index 000000000..ee041709a --- /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" |