| // Copyright 2016 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. |
| // Literals that happen to resolve to named constants |
| // may be used as label names (see issue 13684). Make |
| // sure that other literals don't crash the compiler. |
| 2: // ERROR "unexpected :" |
| 2: ; // ERROR "unexpected :" |
| "bar": // ERROR "unexpected :" |
| "bar": ; // ERROR "unexpected :" |
| labelname: // ERROR "missing statement after label" |
| labelname: // ERROR "label labelname defined and not used" |
| labelname: ; // ERROR "label labelname already defined at LINE-5" |