1// errorcheck 2 3// Copyright 2009 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 7package main 8 9func main() { 10L: 11 for { 12 for { 13 break L2 // ERROR "L2" 14 continue L2 // ERROR "L2" 15 } 16 } 17 18L1: 19 x := 1 20 _ = x 21 for { 22 break L1 // ERROR "L1" 23 continue L1 // ERROR "L1" 24 } 25 26 goto L 27} 28