Add tests for the structure of function-like macros.

These test only the most basic aspect of parsing of function-like
macros.  Specifically, none of the definitions of these function like
macros use the arguments of the function.

No function-like macros are implemented yet, so all of these fail for
now.
This commit is contained in:
Carl Worth 2010-05-13 09:34:21 -07:00
parent 9f62a7e9e2
commit 4abc3dec72
4 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,2 @@
#define foo()
foo()

View file

@ -0,0 +1,2 @@
#define foo() bar
foo()

View file

@ -0,0 +1,2 @@
#define foo(x) 1
foo(bar)

View file

@ -0,0 +1,2 @@
#define foo(x,y) 1
foo(bar,baz)