]> Cypherpunks repositories - gostls13.git/commit
test: Match gccgo error messages.
authorIan Lance Taylor <iant@golang.org>
Fri, 10 Sep 2010 05:40:25 +0000 (22:40 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 10 Sep 2010 05:40:25 +0000 (22:40 -0700)
commitc30b570468973021b5d20f0baa28216ecf6be94c
tree494e1789cc4b964200b0d3002daf6a10da6b4e94
parentf5089ffff41fe374f46fa0cbe058b4a9db91257c
test: Match gccgo error messages.

With the recursive descent parser that gccgo uses, I think
that it doesn't make sense to try to match a statement where a
statement is not expected.  If the construct is not a
statement, you will just get bizarre error messages.

topexpr.go:9:1: error: expected declaration
topexpr.go:14:1: error: expected declaration
topexpr.go:19:1: error: expected declaration

R=rsc, r2
CC=golang-dev
https://golang.org/cl/2175041
test/syntax/topexpr.go