summaryrefslogtreecommitdiffstats
path: root/src/tests/keywords/if-skip
blob: 0e74f2218a28a3e2dc6e7c5d9a5a6bb6bba7646a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# PRE: if
#
#  Conditions which statically evaluate to "false"
#  have their entire contents skipped on load.
#
#  Conditions which statically evaluate to "true"
#  have the following "else" sections skipped, too.
#
#  i.e. we can reference things which don't exist,
#  and they'll get ignored.
#
if (0) {
	no-such-module
}

if (0) {
	no-such-module
}
else {
	ok
}

if (1) {
	ok
}
else {
	no-such-module
}

if (1) {
	ok
}
elsif ("%{foo:bar}") {	# no pass2
	no-such-module
}
else {
	no-such-module
}

update reply {
	Filter-Id := "filter"
}