Source file test/fixedbugs/issue49100b.go

     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  
     7  package main
     8  
     9  func r(j int) {
    10  loop:
    11  	for i, c := range "goclang" {
    12  		if i == 2 {
    13  			continue loop
    14  		}
    15  		println(string(c))
    16  	}
    17  }
    18  
    19  func main() {
    20  loop:
    21  	for j := 0; j < 4; j++ {
    22  		r(j)
    23  		if j == 0 {
    24  			break loop
    25  		}
    26  	}
    27  }
    28  

View as plain text