summaryrefslogtreecommitdiff
path: root/checks/059.indir
diff options
context:
space:
mode:
Diffstat (limited to 'checks/059.indir')
-rw-r--r--checks/059.indir22
1 files changed, 22 insertions, 0 deletions
diff --git a/checks/059.indir b/checks/059.indir
new file mode 100644
index 0000000..4be21e5
--- /dev/null
+++ b/checks/059.indir
@@ -0,0 +1,22 @@
+dnl @ ../doc/m4.texinfo:2520: 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.
+indir(defn(`defn'), `divnum')
+dnl @error{}m4:stdin:1: Warning: indir: invalid macro name ignored
+dnl @result{}
+indir(`define', defn(`defn'), `divnum')
+dnl @error{}m4:stdin:2: Warning: define: invalid macro name ignored
+dnl @result{}
+indir(`define', `foo', defn(`divnum'))
+dnl @result{}
+foo
+dnl @result{}0
+indir(`divert', defn(`foo'))
+dnl @error{}m4:stdin:5: empty string treated as 0 in builtin `divert'
+dnl @result{}