summaryrefslogtreecommitdiff
path: root/tests/gentest/changesy.2.test
blob: 544a8753702c81b5269d74fe36bdcd631bb788a2 (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

# gentest/changesy.2.test is part of the GNU m4 testsuite
# generated from example in ../doc/m4.texinfo line 2141

. ${srcdir}/defs

cat <<\EOF >in
define(`test', `$#')
test(a, b, c)
changesyntax(`(<', `,|', `)>', `O(,)')
test(a, b, c)
test<a|b|c>
EOF

cat <<\EOF >ok

3

0(a, b, c)
3
EOF

$M4 -d in >out

$CMP -s out ok