3 // Copyright 2016 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.
7 // Literals that happen to resolve to named constants
8 // may be used as label names (see issue 13684). Make
9 // sure that other literals don't crash the compiler.
24 2: // ERROR "unexpected :"
30 2: ; // ERROR "unexpected :"
37 "bar": // ERROR "unexpected :"
43 "bar": ; // ERROR "unexpected :"
50 labelname: // ERROR "missing statement after label"