From: Ian Lance Taylor Date: Wed, 2 Dec 2020 02:14:40 +0000 (-0800) Subject: test: match gofrontend error messages X-Git-Tag: go1.16beta1~120 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=73e796cb007989449da95fb4adf936ee76b766ca;p=gostls13.git test: match gofrontend error messages The gofrontend code doesn't distinguish semicolon and newline, and it doesn't have special treatment for EOF. syntax/semi6.go:9:47: error: unexpected semicolon or newline in type declaration syntax/semi6.go:11:62: error: unexpected semicolon or newline in type declaration Change-Id: I9996b59a4fc78ad1935e779f354ddf75c0fb44e0 Reviewed-on: https://go-review.googlesource.com/c/go/+/274692 Trust: Ian Lance Taylor Run-TryBot: Ian Lance Taylor Reviewed-by: Cherry Zhang TryBot-Result: Go Bot --- diff --git a/test/syntax/semi6.go b/test/syntax/semi6.go index 4a04f89ddb..9bc730d43d 100644 --- a/test/syntax/semi6.go +++ b/test/syntax/semi6.go @@ -6,6 +6,6 @@ package main -type T1 // ERROR "unexpected newline in type declaration" +type T1 // ERROR "newline in type declaration" -type T2 /* // ERROR "unexpected EOF in type declaration" */ \ No newline at end of file +type T2 /* // ERROR "(semicolon.*|EOF) in type declaration" */ \ No newline at end of file