summaryrefslogtreecommitdiff
path: root/tests/gentest/divert.2.test
blob: 87f745d7cf9bd02302cdd5f433699c1d88b2c61a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

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

. ${srcdir}/defs

cat <<\EOF >in
divert(-1)
define(`foo', `Macro `foo'.')
define(`bar', `Macro `bar'.')
divert
EOF

cat <<\EOF >ok

EOF

$M4 -d in >out

$CMP -s out ok