diff options
Diffstat (limited to 'tests/gentest/regexp.2.m4')
-rwxr-xr-x | tests/gentest/regexp.2.m4 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/gentest/regexp.2.m4 b/tests/gentest/regexp.2.m4 new file mode 100755 index 00000000..a75bdc6f --- /dev/null +++ b/tests/gentest/regexp.2.m4 @@ -0,0 +1,19 @@ +#!/bin/sh + +# gentest/regexp.2.m4 is part of the GNU m4 testsuite +# generated from example in ../doc/m4.texinfo line 2865 + +. ${srcdir}/defs + +cat <<\EOF >in +regexp(`GNUs not Unix', `\w\(\w+\)$', `*** \& *** \1 ***') +EOF + +cat <<\EOF >ok +*** Unix *** nix *** +EOF + +$M4 -d in >out + +$CMP -s out ok + |