summaryrefslogtreecommitdiff
path: root/checks/046.undefine
diff options
context:
space:
mode:
Diffstat (limited to 'checks/046.undefine')
-rw-r--r--checks/046.undefine23
1 files changed, 23 insertions, 0 deletions
diff --git a/checks/046.undefine b/checks/046.undefine
new file mode 100644
index 0000000..179601f
--- /dev/null
+++ b/checks/046.undefine
@@ -0,0 +1,23 @@
+dnl @ ../doc/m4.texi:2202: Origin of test
+dnl @ expected status: 0
+dnl @ extra options:
+dnl @ Copyright (C) 2006, 2007, 2008, 2009 Free Software
+dnl @ Foundation, Inc.
+dnl @ This file is free software; the Free Software Foundation
+dnl @ gives unlimited permission to copy and/or distribute it
+dnl @ with or without modifications, as long as this notice
+dnl @ is preserved.
+foo bar blah
+dnl @result{}foo bar blah
+define(`foo', `some')define(`bar', `other')define(`blah', `text')
+dnl @result{}
+foo bar blah
+dnl @result{}some other text
+undefine(`foo')
+dnl @result{}
+foo bar blah
+dnl @result{}foo other text
+undefine(`bar', `blah')
+dnl @result{}
+foo bar blah
+dnl @result{}foo bar blah