]> Cypherpunks.ru repositories - gostls13.git/commitdiff
test: match gofrontend error messages
authorIan Lance Taylor <iant@golang.org>
Wed, 2 Dec 2020 02:14:40 +0000 (18:14 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 2 Dec 2020 02:56:41 +0000 (02:56 +0000)
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 <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>

test/syntax/semi6.go

index 4a04f89ddb107043157c9c397d3367433963b06d..9bc730d43d656a2e659a7511b31696f27c72fb34 100644 (file)
@@ -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