summaryrefslogtreecommitdiff
path: root/tests/pseudoar.4.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pseudoar.4.test')
-rwxr-xr-xtests/pseudoar.4.test27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/pseudoar.4.test b/tests/pseudoar.4.test
new file mode 100755
index 00000000..b95fade9
--- /dev/null
+++ b/tests/pseudoar.4.test
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# pseudoar.4.test is part of the GNU m4 testsuite
+# generated from example in ../doc/m4.texinfo line 1136
+
+. ${srcdir}/defs
+
+cat <<\EOF >in
+define(`echo1', `$*')
+define(`echo2', `$@')
+define(`foo', `This is macro `foo'.')
+echo1(foo)
+echo2(foo)
+EOF
+
+cat <<\EOF >ok
+
+
+
+This is macro This is macro foo..
+This is macro foo.
+EOF
+
+$M4 -d in >out
+
+$CMP -s out ok
+