1 dnl @ ../doc/m4.texi:2670: Origin of test
2 dnl @ expected status: 0
4 dnl @ Copyright (C) 2006, 2007, 2008, 2009 Free Software
6 dnl @ This file is free software; the Free Software Foundation
7 dnl @ gives unlimited permission to copy and/or distribute it
8 dnl @ with or without modifications, as long as this notice
10 define(`s', `builtin(`shift', $@)')dnl
11 define(`loop', `ifelse(`$2', `', `-', `$1$2: $0(`$1', s(s($@)))')')dnl
17 dnl @result{}12: 13: -
18 loop(`1', `2', `3', `4')
19 dnl @result{}12: 13: 14: -
20 loop(`1', `2', `3', `4', `5')
21 dnl @result{}12: 13: 14: 15: -