github.com/yunabe/lgo@v0.0.0-20190709125917-42c42d410fdf/converter/testdata/labeled_branch.golden (about)

     1  package lgo_exec
     2  
     3  import "fmt"
     4  func lgo_init() {
     5  
     6  outer:
     7  	for i := 0; ; i++ {
     8  		for j := 0; j < i; j++ {
     9  			if i > 10 && j > 10 {
    10  				break outer
    11  			}
    12  		}
    13  	}
    14  
    15  	if i+j > 0 {
    16  		goto ok
    17  	}
    18  
    19  ok:
    20  	fmt.Println("OK!")
    21  }
    22  var (
    23  	i int
    24  	j int
    25  )