Skip to content

Commit

Permalink
also test syntax package
Browse files Browse the repository at this point in the history
Change-Id: I41098d8c1f0aa4beb4098c7ade475807c80ab0af
  • Loading branch information
mateusz834 committed Dec 22, 2024
1 parent 272e0ea commit 1356317
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/cmd/compile/internal/syntax/testdata/issue70957.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package p

func f() { goto /* ERROR syntax error: unexpected semicolon, expected name */ ;}

func f() { goto } // ERROR syntax error: unexpected }, expected name

0 comments on commit 1356317

Please sign in to comment.