diff options
Diffstat (limited to 'tests/gentest/divert.2.m4')
-rwxr-xr-x | tests/gentest/divert.2.m4 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/gentest/divert.2.m4 b/tests/gentest/divert.2.m4 new file mode 100755 index 00000000..13075ff7 --- /dev/null +++ b/tests/gentest/divert.2.m4 @@ -0,0 +1,22 @@ +#!/bin/sh + +# gentest/divert.2.m4 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 + |