Skip to content

Commit d2fcd36

Browse files
adonovangopherbot
authored andcommittedFeb 24, 2025·
go/analysis/passes/unreachable/testdata: relax test for CL 638395
This test case is about to become a parse error. To allow us to submit the change to the parser, we must relax this test. Updates golang/go#71659 Updates golang/go#70957 Change-Id: Ic4fbfedb69d152d691dec41a94bb402149463f84 Reviewed-on: https://go-review.googlesource.com/c/tools/+/651155 Auto-Submit: Alan Donovan <adonovan@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Robert Findley <rfindley@google.com>
1 parent 2b2a44e commit d2fcd36

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed
 

‎go/analysis/passes/unreachable/testdata/src/a/a.go

-5
Original file line numberDiff line numberDiff line change
@@ -2118,11 +2118,6 @@ var _ = func() int {
21182118
println() // ok
21192119
}
21202120

2121-
var _ = func() {
2122-
// goto without label used to panic
2123-
goto
2124-
}
2125-
21262121
func _() int {
21272122
// Empty switch tag with non-bool case value used to panic.
21282123
switch {

‎go/analysis/passes/unreachable/testdata/src/a/a.go.golden

-5
Original file line numberDiff line numberDiff line change
@@ -2082,11 +2082,6 @@ var _ = func() int {
20822082
println() // ok
20832083
}
20842084

2085-
var _ = func() {
2086-
// goto without label used to panic
2087-
goto
2088-
}
2089-
20902085
func _() int {
20912086
// Empty switch tag with non-bool case value used to panic.
20922087
switch {

0 commit comments

Comments
 (0)
Please sign in to comment.