| // Copyright 2011 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. |
| // Verify that erroneous labels are caught by the compiler. |
| // This set is caught by pass 1. |
| L1: // ERROR "label .*L1.* defined and not used" |
| L2: // ERROR "label .*L2.* defined and not used" |
| L3: // ERROR "label .*L3.* defined and not used" |
| L4: // ERROR "label .*L4.* defined and not used" |
| L5: // ERROR "label .*L5.* defined and not used" |
| L6: // GCCGO_ERROR "previous" |
| L6: // ERROR "label .*L6.* already defined" |
| defalt: // ERROR "label .*defalt.* defined and not used" |
| goto go2 // ERROR "label go2 not defined" |