aboutsummaryrefslogtreecommitdiff
path: root/checks/151.divert
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2019-02-18 13:40:03 -0800
committerDan Willemsen <dwillemsen@google.com>2019-02-18 13:40:03 -0800
commitea2b8a1c079d9184f53277f95a4d52c3c5a9f019 (patch)
tree5ec9aa82542909ecfc0859277d941528857a59b7 /checks/151.divert
parentcfddd4f332465a447e87b4c1523fb2b9133e7afd (diff)
downloadm4-ea2b8a1c079d9184f53277f95a4d52c3c5a9f019.tar.gz
Add 1.4.18 tarball contentsupstream
Test: none Change-Id: Id75707b7a41aaaaf33046cf541bcb19ecb4d5851
Diffstat (limited to 'checks/151.divert')
-rw-r--r--checks/151.divert19
1 files changed, 19 insertions, 0 deletions
diff --git a/checks/151.divert b/checks/151.divert
new file mode 100644
index 0000000..20f3b43
--- /dev/null
+++ b/checks/151.divert
@@ -0,0 +1,19 @@
+dnl @ ../doc/m4.texi:5376: 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.
+We decided to divert the stream for irrigation.
+dnl @result{}We decided to the stream for irrigation.
+define(`divert', `ifelse(`$#', `0', ``$0'', `builtin(`$0', $@)')')
+dnl @result{}
+divert(`-1')
+Ignored text.
+divert(`0')
+dnl @result{}
+We decided to divert the stream for irrigation.
+dnl @result{}We decided to divert the stream for irrigation.