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