blob: 5bd9d7c5d0591d78523ba9711e6cd1f3772c0967 [file] [log] [blame]
Robert Griesemere92b7532008-06-06 15:53:14 -07001// $G $F.go && $L $F.$A && ./$A.out
2
3// Copyright 2009 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
Russ Cox918afd942009-05-08 15:21:41 -07009import "os"
10
Rob Pike34cb7c22008-06-27 14:15:06 -070011func main() {
Rob Pike4f61fc92010-09-04 10:36:13 +100012 i := 0
Rob Pike39b28df2008-06-16 11:36:23 -070013 switch x := 5; {
14 case i < x:
Rob Pike4f61fc92010-09-04 10:36:13 +100015 os.Exit(0)
Rob Pike39b28df2008-06-16 11:36:23 -070016 case i == x:
17 case i > x:
Rob Pike4f61fc92010-09-04 10:36:13 +100018 os.Exit(1)
Robert Griesemere92b7532008-06-06 15:53:14 -070019 }
20}