]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/syntax: add test case for invalid label use
authorRobert Griesemer <gri@golang.org>
Tue, 7 Jan 2025 00:22:10 +0000 (16:22 -0800)
committerGopher Robot <gobot@golang.org>
Tue, 7 Jan 2025 17:56:13 +0000 (09:56 -0800)
commit9d0772b23ed8dae1667a3328a72f384eccf812d7
treeabc5b589c822faa79da896923940cfc8811dbd97
parent1d20bce981005777424b9c8da199015ab2148810
cmd/compile/internal/syntax: add test case for invalid label use

This case is not properly handled by the type checkers (see issue)
but the compiler uses the parser's label checking so it works as
expected.

For #70974.

Change-Id: I0849376bf7514a9a7730846649c3fe28c91f44ca
Reviewed-on: https://go-review.googlesource.com/c/go/+/640895
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
src/cmd/compile/internal/syntax/testdata/issue70974.go [new file with mode: 0644]