Imported Upstream version 1.4.16
[platform/upstream/m4.git] / checks / 114.changequot
1 dnl @ ../doc/m4.texinfo:4370: 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 changequote(`[', `]')dnl
11 define([a], [1, (b)])dnl
12 define([b], [2])dnl
13 define([quote], [[$*]])dnl
14 define([expand], [_$0(($1))])dnl
15 define([_expand],
16   [changequote([(], [)])$1changequote`'changequote(`[', `]')])dnl
17 expand([a, a, [a, a], [[a, a]]])
18 dnl @result{}1, (2), 1, (2), a, a, [a, a]
19 quote(a, a, [a, a], [[a, a]])
20 dnl @result{}1,(2),1,(2),a, a,[a, a]