Debian Codegraph @

test/fixedbugs/issue64826.go

raw
1 // build
2
3 // Copyright 2023 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 main
8
9 func main() {
10 f(g(false))
11 }
12 func g(b bool) string {
13 if b {
14 return "z"
15 }
16 return "q"
17 }
18 func f(x string) int {
19 switch len(x) {
20 case 4:
21 return 4
22 case 5:
23 return 5
24 case 6:
25 return 6
26 case 7:
27 return 7
28 case 8:
29 return 8
30 case 9:
31 return 9
32 case 10:
33 return 10
34 case 11:
35 return 11
36 }
37 return 0
38 }