From e035919ba168c1b4aeab561826f815b0c1b3e813 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 25 Mar 2010 12:47:43 -0700 Subject: gc: more syntax errors R=r CC=golang-dev http://codereview.appspot.com/731041 --- test/syntax/vareq.go | 10 ++++++++++ test/syntax/vareq1.go | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 test/syntax/vareq.go create mode 100644 test/syntax/vareq1.go (limited to 'test/syntax') 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 =" + -- cgit v1.2.1