Debian Codegraph @

src/tests/keywords/switch-nodefault

raw
1 #
2 # User-Name is "bob", and a switch statement
3 # with no "default" should not crash the server.
4 #
5 switch &User-Name {
6 case "doug" {
7 update reply {
8 Filter-Id := "doug"
9 }
10 }
11 }
12
13 if (&reply:Filter-Id) {
14 update reply {
15 Filter-Id := "fail 1"
16 }
17 }
18 else {
19 update reply {
20 Filter-Id := "filter"
21 }
22 }