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