2012-02-18 14:15:42 -07:00
|
|
|
// compile
|
2009-02-13 14:42:43 -07:00
|
|
|
|
|
|
|
// Copyright 2009 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
L1:
|
2011-03-15 12:05:07 -06:00
|
|
|
L2:
|
|
|
|
for i := 0; i < 10; i++ {
|
|
|
|
print(i)
|
|
|
|
break L2
|
2009-02-13 14:42:43 -07:00
|
|
|
}
|
|
|
|
|
2011-03-15 12:05:07 -06:00
|
|
|
L3:
|
|
|
|
;
|
|
|
|
L4:
|
|
|
|
for i := 0; i < 10; i++ {
|
|
|
|
print(i)
|
|
|
|
break L4
|
2009-02-13 14:42:43 -07:00
|
|
|
}
|
2011-03-15 12:05:07 -06:00
|
|
|
goto L1
|
|
|
|
goto L3
|
2009-02-13 14:42:43 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
bug137.go:9: break label is not defined: L2
|
|
|
|
bug137.go:15: break label is not defined: L4
|
|
|
|
*/
|