blob: 7e7c5ca796a2d84c373f210fb3b4c4c21021497f [file] [log] [blame]
Rob Pike094ee442008-06-06 16:56:18 -07001// $G $D/$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
9func main() {
10 i5 := 5;
11
12 switch { // compiler crash fixable with 'switch true'
13 case i5 < 5: dummy := 0;
14 case i5 == 5: dummy := 0;
15 case i5 > 5: dummy := 0;
16 }
17}
18/*
19Segmentation fault
20*/