Imported Upstream version 1.4.16
[platform/upstream/m4.git] / checks / 020.macro_argu
1 dnl @ ../doc/m4.texinfo:1552: 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(`macro', `$1')
11 dnl @result{}
12 macro( unquoted leading space lost)
13 dnl @result{}unquoted leading space lost
14 macro(` quoted leading space kept')
15 dnl @result{} quoted leading space kept
16 macro(
17  divert `unquoted space kept after expansion')
18 dnl @result{} unquoted space kept after expansion
19 macro(macro(`
20 ')`whitespace from expansion kept')
21 dnl @result{}
22 dnl @result{}whitespace from expansion kept
23 macro(`unquoted trailing whitespace kept'
24 )
25 dnl @result{}unquoted trailing whitespace kept
26 dnl @result{}