test: update gofrontend expected errors

This matches the error messages after CL 273890.

syntax/semi4.go:11:9: error: unexpected semicolon or newline, expecting ‘{’ after for clause
syntax/semi4.go:10:13: error: reference to undefined name ‘x’
syntax/semi4.go:12:17: error: reference to undefined name ‘z’

Change-Id: Ic88ff6e27d50bf70f5b2114383b84c42c0682f39
Reviewed-on: https://go-review.googlesource.com/c/go/+/273891
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
Ian Lance Taylor 2020-11-28 19:10:57 -08:00
parent a45e12fd4b
commit 848dff6dda

View file

@ -8,5 +8,5 @@ package main
func main() { func main() {
for x // GCCGO_ERROR "undefined" for x // GCCGO_ERROR "undefined"
{ // ERROR "unexpected {, expecting for loop condition" { // ERROR "unexpected {, expecting for loop condition|expecting .*{.* after for clause"
z z // GCCGO_ERROR "undefined"