blob: 61b8bf6d4ff737b85e0e513150cd3d7a15d1f9f3 [file] [log] [blame]
Russ Cox57eb06f2012-02-16 23:51:04 -05001// errorcheck
Russ Cox2a01d722010-01-26 23:13:22 -08002
3// Copyright 2010 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() {
Rob Pikea8fe1762013-08-19 12:05:33 +100010 switch x; y // ERROR "missing { after switch clause|undefined"
Russ Cox2a01d722010-01-26 23:13:22 -080011 {
12 z
13
14