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