summaryrefslogtreecommitdiff
path: root/tests/generated-tests/regexp.2.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/generated-tests/regexp.2.test')
-rwxr-xr-xtests/generated-tests/regexp.2.test19
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
+