Debian Codegraph @

src/internal/types/testdata/check/issue70974.go

raw
1 // Copyright 2014 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 outer:
9 for {
10 break outer
11 }
12
13 for {
14 break outer /* ERROR "invalid break label outer" */
15 }
16 }
17
18 func _() {
19 outer:
20 for {
21 continue outer
22 }
23
24 for {
25 continue outer /* ERROR "invalid continue label outer" */
26 }
27 }