1// run 2 3// Copyright 2021 The Go Authors. All rights reserved. 4// Use of this source code is governed by a BSD-style 5// license that can be found in the LICENSE file. 6 7package main 8 9func r(j int) { 10loop: 11 for i, c := range "goclang" { 12 if i == 2 { 13 continue loop 14 } 15 println(string(c)) 16 } 17} 18 19func main() { 20loop: 21 for j := 0; j < 4; j++ { 22 r(j) 23 if j == 0 { 24 break loop 25 } 26 } 27} 28