diff options
Diffstat (limited to 'tests/gentest/indir.1.m4')
-rwxr-xr-x | tests/gentest/indir.1.m4 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/gentest/indir.1.m4 b/tests/gentest/indir.1.m4 new file mode 100755 index 00000000..e1714a5b --- /dev/null +++ b/tests/gentest/indir.1.m4 @@ -0,0 +1,23 @@ +#!/bin/sh + +# gentest/indir.1.m4 is part of the GNU m4 testsuite +# generated from example in ../doc/m4.texinfo line 1369 + +. ${srcdir}/defs + +cat <<\EOF >in +define(`$$internal$macro', `Internal macro (name `$0')') +$$internal$macro +indir(`$$internal$macro') +EOF + +cat <<\EOF >ok + +$$internal$macro +Internal macro (name $$internal$macro) +EOF + +$M4 -d in >out + +$CMP -s out ok + |