1 dnl @ ../doc/m4.texi:2163: Origin of test
2 dnl @ expected status: 0
4 dnl @ Copyright (C) 2006, 2007, 2008, 2009 Free Software
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
10 define(`foo', `no nested quote: $1')
13 dnl @result{}no nested quote: arg
14 define(`foo', `nested quote around $: `$'1')
17 dnl @result{}nested quote around $: $1
18 define(`foo', `nested empty quote after $: $`'1')
21 dnl @result{}nested empty quote after $: $1
22 define(`foo', `nested quote around next character: $`1'')
25 dnl @result{}nested quote around next character: $1
26 define(`foo', `nested quote around both: `$1'')
29 dnl @result{}nested quote around both: arg