blob: 48f74a52d95963e0afd6cb6701a079ab150412e4 [file] [log] [blame]
Russ Cox0b477ef2012-02-16 23:48:57 -05001// run
Rob Pike094ee442008-06-06 16:56:18 -07002
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'
Russ Cox1a319892009-09-14 21:03:53 -070013 case i5 < 5: dummy := 0; _ = dummy;
14 case i5 == 5: dummy := 0; _ = dummy;
15 case i5 > 5: dummy := 0; _ = dummy;
Rob Pike094ee442008-06-06 16:56:18 -070016 }
17}
18/*
19Segmentation fault
20*/