summaryrefslogtreecommitdiff
path: root/tests/argument.3.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/argument.3.test')
-rwxr-xr-xtests/argument.3.test21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/argument.3.test b/tests/argument.3.test
new file mode 100755
index 00000000..0231981b
--- /dev/null
+++ b/tests/argument.3.test
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+# argument.3.test is part of the GNU m4 testsuite
+# generated from example in ../doc/m4.texinfo line 1067
+
+. ${srcdir}/defs
+
+cat <<\EOF >in
+define(`test', ``Macro name: $0'')
+test
+EOF
+
+cat <<\EOF >ok
+
+Macro name: test
+EOF
+
+$M4 -d in >out
+
+$CMP -s out ok
+