diff options
Diffstat (limited to 'tests/cleardiv.2.test')
-rwxr-xr-x | tests/cleardiv.2.test | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/cleardiv.2.test b/tests/cleardiv.2.test new file mode 100755 index 00000000..1f5df3ac --- /dev/null +++ b/tests/cleardiv.2.test @@ -0,0 +1,20 @@ +#!/bin/sh + +# cleardiv.2.test is part of the GNU m4 testsuite +# generated from example in ../doc/m4.texinfo line 2754 + +. ${srcdir}/defs + +cat <<\EOF >in +define(`cleardivert', +`pushdef(`_num', divnum)divert(-1)undivert($@)divert(_num)popdef(`_num')') +EOF + +cat <<\EOF >ok + +EOF + +$M4 -d in >out + +$CMP -s out ok + |