c594d01383f3f8eb8e4124948c607961f270f7c6
[platform/upstream/m4.git] / checks / 037.pseudo_arg
1 dnl @ ../doc/m4.texinfo:1990: 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(`nargs', `$#')
11 dnl @result{}
12 nargs
13 dnl @result{}0
14 nargs()
15 dnl @result{}1
16 nargs(`arg1', `arg2', `arg3')
17 dnl @result{}3
18 nargs(`commas can be quoted, like this')
19 dnl @result{}1
20 nargs(arg1#inside comments, commas do not separate arguments
21 still arg1)
22 dnl @result{}1
23 nargs((unquoted parentheses, like this, group arguments))
24 dnl @result{}1