2f8be4e065af0e2212de089d20c13f39a0f40893
[platform/upstream/m4.git] / checks / 076.shift
1 dnl @ ../doc/m4.texinfo:3111: 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 include(`quote.m4')
11 dnl @result{}
12 -quote-dquote-dquote_elt-
13 dnl @result{}----
14 -quote()-dquote()-dquote_elt()-
15 dnl @result{}--`'-`'-
16 -quote(`1')-dquote(`1')-dquote_elt(`1')-
17 dnl @result{}-1-`1'-`1'-
18 -quote(`1', `2')-dquote(`1', `2')-dquote_elt(`1', `2')-
19 dnl @result{}-1,2-`1',`2'-`1',`2'-
20 define(`n', `$#')dnl
21 -n(quote(`1', `2'))-n(dquote(`1', `2'))-n(dquote_elt(`1', `2'))-
22 dnl @result{}-1-1-2-
23 dquote(dquote_elt(`1', `2'))
24 dnl @result{}``1'',``2''
25 dquote_elt(dquote(`1', `2'))
26 dnl @result{}``1',`2''