summaryrefslogtreecommitdiffstats
path: root/src/tests/keywords/switch-nodefault
blob: 5fb94699bc195d5e386b06f5d44c089f94e18d5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
#  User-Name is "bob", and a switch statement
#  with no "default" should not crash the server.
#
switch &User-Name {
	case "doug" {
		update reply {
			Filter-Id := "doug"
		}
	}
}

if (&reply:Filter-Id) {
	update reply {
		Filter-Id := "fail 1"
	}
}
else {
	update reply {
		Filter-Id := "filter"
	}
}