Source file test/fixedbugs/issue67329.go
1 // errorcheck -0 -d=ssa/check_bce/debug=1 2 3 // Copyright 2024 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 x 8 9 func Found(x []string) string { 10 switch len(x) { 11 default: 12 return x[0] 13 case 0, 1: 14 return "" 15 } 16 } 17 18 func NotFound(x []string) string { 19 switch len(x) { 20 default: 21 return x[0] 22 case 0: 23 return "" 24 case 1: 25 return "" 26 } 27 } 28