summaryrefslogtreecommitdiffstats
path: root/src/tests/xlat/expr.txt
blob: e2d9f10e0cd7d56fb1f938715e8d9443ee32f1c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
xlat %{md5:This is a string\n}
data 9ac4dbbc3c0ad2429e61d0df5dc28add

xlat %{expr: 1 + 2 + 3 + 4}
data 10

xlat %{expr: 1 & ~1}
data 0

xlat %{expr: 2 - -1}
data 3

xlat %{expr: -1 * 2}
data -2

xlat %{expr: 1 << 2 | 1}
data 5

xlat %{expr: 6 + -(1 + 3)}
data 2