Imported Upstream version 1.4.17
[platform/upstream/m4.git] / checks / 045.pseudo_arg
1 dnl @ ../doc/m4.texi:2163: 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(`foo', `no nested quote: $1')
11 dnl @result{}
12 foo(`arg')
13 dnl @result{}no nested quote: arg
14 define(`foo', `nested quote around $: `$'1')
15 dnl @result{}
16 foo(`arg')
17 dnl @result{}nested quote around $: $1
18 define(`foo', `nested empty quote after $: $`'1')
19 dnl @result{}
20 foo(`arg')
21 dnl @result{}nested empty quote after $: $1
22 define(`foo', `nested quote around next character: $`1'')
23 dnl @result{}
24 foo(`arg')
25 dnl @result{}nested quote around next character: $1
26 define(`foo', `nested quote around both: `$1'')
27 dnl @result{}
28 foo(`arg')
29 dnl @result{}nested quote around both: arg