Source file test/fixedbugs/issue25006.go
1 // compile 2 3 // Copyright 2018 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 7 package p 8 9 func spin() { 10 var i int 11 var b bool 12 13 switch 1 { 14 case 0: 15 i = 1 16 } 17 switch 1 { 18 case i: 19 default: 20 i = 1 21 b = !b && (b && !b) && b 22 } 23 switch false { 24 case false: 25 i = 3 + -i 26 switch 0 { 27 case 1 - i: 28 } 29 } 30 } 31