summaryrefslogtreecommitdiff
path: root/tests/generated-tests/eval.2.test
blob: 443672d1b5b51499ff02ad319204a720a3f48c7e (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
#!/bin/sh

# generated-tests/eval.2.test is part of the GNU m4 testsuite
# generated from example in ../doc/m4.texinfo line 3224

. ${srcdir}/defs

cat <<\EOF >in
eval(666, 10)
eval(666, 11)
eval(666, 6)
eval(666, 6, 10)
eval(-666, 6, 10)
EOF

cat <<\EOF >ok
666
556
3030
0000003030
-000003030
EOF

$M4 -d in >out

$CMP -s out ok