Debian Codegraph @

src/tests/keywords/cast-short

raw
1 #
2 # PRE: update if
3 #
4 update {
5 control:Cleartext-Password := 'hello'
6 request:Class := 0x0101
7 }
8
9 if (<short>Class == 257) {
10 update reply {
11 Filter-Id := "filter"
12 }
13 }
14
15 if (<short>Class < 256) {
16 update reply {
17 Filter-Id += "wrong"
18 }
19 }
20
21 if (<short>Class > 257) {
22 update reply {
23 Filter-Id += "wrong"
24 }
25 }