Imported Upstream version 1.4.19
[platform/upstream/m4.git] / checks / 123.changecom
1 dnl @ ../doc/m4.texi:4572: 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(`echo', `$#:$*:$@:')
11 dnl @result{}
12 define(`hi', `HI')
13 dnl @result{}
14 changecom(`(',`)')
15 dnl @result{}
16 echo(hi)
17 dnl @result{}0:::(hi)
18 changecom
19 dnl @result{}
20 changecom(`((', `))')
21 dnl @result{}
22 echo(hi)
23 dnl @result{}1:HI:HI:
24 echo((hi))
25 dnl @result{}0:::((hi))
26 changecom(`,', `)')
27 dnl @result{}
28 echo(hi,hi)bye)
29 dnl @result{}1:HI,hi)bye:HI,hi)bye:
30 changecom
31 dnl @result{}
32 echo(hi,`,`'hi',hi)
33 dnl @result{}3:HI,,HI,HI:HI,,`'hi,HI:
34 echo(hi,`,`'hi',hi`'changecom(`,,', `hi'))
35 dnl @result{}3:HI,,`'hi,HI:HI,,`'hi,HI: