2012-02-16 21:49:30 -07:00
|
|
|
// errorcheck
|
2009-02-06 17:45:37 -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() {
|
2009-07-29 15:49:01 -06:00
|
|
|
L:
|
|
|
|
for {
|
|
|
|
for {
|
2011-03-15 12:05:07 -06:00
|
|
|
break L2 // ERROR "L2"
|
|
|
|
continue L2 // ERROR "L2"
|
2009-07-29 15:49:01 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
L1:
|
2011-03-15 12:05:07 -06:00
|
|
|
x := 1
|
|
|
|
_ = x
|
2009-07-29 15:49:01 -06:00
|
|
|
for {
|
2011-03-15 12:05:07 -06:00
|
|
|
break L1 // ERROR "L1"
|
|
|
|
continue L1 // ERROR "L1"
|
2009-02-06 17:45:37 -07:00
|
|
|
}
|
2011-03-15 12:05:07 -06:00
|
|
|
|
|
|
|
goto L
|
2009-02-06 17:45:37 -07:00
|
|
|
}
|