src/cmd/compile/internal/syntax/testdata/issue70974.go
raw| 1 | // Copyright 2025 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 _() { |
| 8 | M: |
| 9 | L: |
| 10 | for range 0 { |
| 11 | break L |
| 12 | break /* ERROR invalid break label M */ M |
| 13 | } |
| 14 | for range 0 { |
| 15 | break /* ERROR invalid break label L */ L |
| 16 | } |
| 17 | } |