blob: 921678999a1dab0eb58b44ee3f2547aaeef46c76 [file] [log] [blame]
Russ Cox57eb06f2012-02-16 23:51:04 -05001// errorcheck
Russ Cox2a01d722010-01-26 23:13:22 -08002
Emmanuel Odeke53fd5222016-04-10 14:32:26 -07003// Copyright 2010 The Go Authors. All rights reserved.
Russ Cox2a01d722010-01-26 23:13:22 -08004// 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() {
Ian Lance Taylor161a45a2013-12-12 17:18:12 -080010 switch x; y // ERROR "missing .*{.* after switch clause|undefined"
Russ Cox2a01d722010-01-26 23:13:22 -080011 {
12 z
13
14