Imported Upstream version 1.4.17
[platform/upstream/m4.git] / checks / 064.builtin
1 dnl @ ../doc/m4.texi:2672: Origin of test
2 dnl @ expected status: 0
3 dnl @ extra options: 
4 dnl @ Copyright (C) 2006, 2007, 2008, 2009 Free Software
5 dnl @ Foundation, Inc.
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
9 dnl @ is preserved.
10 define(`s', `builtin(`shift', $@)')dnl
11 define(`loop', `ifelse(`$2', `', `-', `$1$2: $0(`$1', s(s($@)))')')dnl
12 loop(`1')
13 dnl @result{}-
14 loop(`1', `2')
15 dnl @result{}12: -
16 loop(`1', `2', `3')
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: -