Commit 78c27ed6 authored by Russ Cox's avatar Russ Cox

gc: more syntax errors

R=r
CC=golang-dev
https://golang.org/cl/731041
parent 4b40426a
......@@ -43,4 +43,10 @@ static struct {
% loadsys package imports LFUNC LNAME '(' ')' '{' LFOR LVAR LNAME '=' LNAME
"var declaration not allowed in for initializer",
% loadsys package imports LVAR LNAME '[' ']' LNAME '{'
"var declaration missing = before initial value",
% loadsys package imports LFUNC LNAME '(' ')' '{' LVAR LNAME '[' ']' LNAME '{'
"var declaration missing = before initial value",
};
// 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 ="
// 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 ="
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment