diff options
Diffstat (limited to 'tests/generated-tests/regexp.2.test')
-rwxr-xr-x | tests/generated-tests/regexp.2.test | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/generated-tests/regexp.2.test b/tests/generated-tests/regexp.2.test new file mode 100755 index 00000000..22cb99c6 --- /dev/null +++ b/tests/generated-tests/regexp.2.test @@ -0,0 +1,19 @@ +#!/bin/sh + +# generated-tests/regexp.2.test is part of the GNU m4 testsuite +# generated from example in ../doc/m4.texinfo line 2859 + +. ${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 + |