summaryrefslogtreecommitdiff
path: root/tests/gentest/incr.1.m4
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gentest/incr.1.m4')
-rwxr-xr-xtests/gentest/incr.1.m421
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/gentest/incr.1.m4 b/tests/gentest/incr.1.m4
new file mode 100755
index 00000000..16035bd3
--- /dev/null
+++ b/tests/gentest/incr.1.m4
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+# gentest/incr.1.m4 is part of the GNU m4 testsuite
+# generated from example in ../doc/m4.texinfo line 3105
+
+. ${srcdir}/defs
+
+cat <<\EOF >in
+incr(4)
+decr(7)
+EOF
+
+cat <<\EOF >ok
+5
+6
+EOF
+
+$M4 -d in >out
+
+$CMP -s out ok
+