summaryrefslogtreecommitdiff
path: root/checks/211.extensions
blob: fa125a88a97696bc7cc458a15b1f0668ff4886c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
dnl @ ../doc/m4.texi:7395: 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.
define(`a1', `A1')
dnl @result{}
dnl First argument, concatenated with 1
define(`_1', `$1')define(`first1', `_1($@)1')
dnl @result{}
dnl Eleventh argument, portable
define(`_9', `$9')define(`eleventh', `_9(shift(shift($@)))')
dnl @result{}
dnl Eleventh argument, GNU style
define(`Eleventh', `$11')
dnl @result{}
first1(`a', `b', `c', `d', `e', `f', `g', `h', `i', `j', `k')
dnl @result{}A1
eleventh(`a', `b', `c', `d', `e', `f', `g', `h', `i', `j', `k')
dnl @result{}k
Eleventh(`a', `b', `c', `d', `e', `f', `g', `h', `i', `j', `k')
dnl @result{}k