Skip to content

Commit 1356317

Browse files
committed
also test syntax package
Change-Id: I41098d8c1f0aa4beb4098c7ade475807c80ab0af
1 parent 272e0ea commit 1356317

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Copyright 2024 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
5+
package p
6+
7+
func f() { goto /* ERROR syntax error: unexpected semicolon, expected name */ ;}
8+
9+
func f() { goto } // ERROR syntax error: unexpected }, expected name

0 commit comments

Comments
 (0)