diff options
author | Russ Cox <rsc@golang.org> | 2010-03-25 12:47:43 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-03-25 12:47:43 -0700 |
commit | e035919ba168c1b4aeab561826f815b0c1b3e813 (patch) | |
tree | 9a8298ee1462a1c096e8baea5d9325ad77840e5a /test/syntax | |
parent | 0c48c649b15e536495988252bcc58c1fcb83fd74 (diff) | |
download | go-e035919ba168c1b4aeab561826f815b0c1b3e813.tar.gz |
gc: more syntax errors
R=r
CC=golang-dev
http://codereview.appspot.com/731041
Diffstat (limited to 'test/syntax')
-rw-r--r-- | test/syntax/vareq.go | 10 | ||||
-rw-r--r-- | test/syntax/vareq1.go | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/test/syntax/vareq.go b/test/syntax/vareq.go new file mode 100644 index 000000000..ef15fe5cd --- /dev/null +++ b/test/syntax/vareq.go @@ -0,0 +1,10 @@ +// 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 + +func main() { + var x map[string]string{"a":"b"} // ERROR "var declaration missing =" diff --git a/test/syntax/vareq1.go b/test/syntax/vareq1.go new file mode 100644 index 000000000..4697d018f --- /dev/null +++ b/test/syntax/vareq1.go @@ -0,0 +1,10 @@ +// 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 + +var x map[string]string{"a":"b"} // ERROR "var declaration missing =" + |