Initial commit: Go 1.23 release state
This commit is contained in:
61
test/fixedbugs/issue15838.dir/a.go
Normal file
61
test/fixedbugs/issue15838.dir/a.go
Normal file
@@ -0,0 +1,61 @@
|
||||
// Copyright 2016 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 a
|
||||
|
||||
func F1() {
|
||||
L:
|
||||
goto L
|
||||
}
|
||||
|
||||
func F2() {
|
||||
L:
|
||||
for {
|
||||
break L
|
||||
}
|
||||
}
|
||||
|
||||
func F3() {
|
||||
L:
|
||||
for {
|
||||
continue L
|
||||
}
|
||||
}
|
||||
|
||||
func F4() {
|
||||
switch {
|
||||
case true:
|
||||
fallthrough
|
||||
default:
|
||||
}
|
||||
}
|
||||
|
||||
type T struct{}
|
||||
|
||||
func (T) M1() {
|
||||
L:
|
||||
goto L
|
||||
}
|
||||
|
||||
func (T) M2() {
|
||||
L:
|
||||
for {
|
||||
break L
|
||||
}
|
||||
}
|
||||
|
||||
func (T) M3() {
|
||||
L:
|
||||
for {
|
||||
continue L
|
||||
}
|
||||
}
|
||||
|
||||
func (T) M4() {
|
||||
switch {
|
||||
case true:
|
||||
fallthrough
|
||||
default:
|
||||
}
|
||||
}
|
||||
9
test/fixedbugs/issue15838.dir/b.go
Normal file
9
test/fixedbugs/issue15838.dir/b.go
Normal file
@@ -0,0 +1,9 @@
|
||||
// Copyright 2016 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 b
|
||||
|
||||
import "./a"
|
||||
|
||||
type T struct{ a.T }
|
||||
Reference in New Issue
Block a user