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